Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

need way to trace references in project

Status
Not open for further replies.

jhall251

Programmer
Dec 7, 2000
84
US
I must have added an object in one project that references libraries in another project bc now the other project is getting pulled in on every build. Is there a tool that can track down what in the project is referencing the other project? I am using vfp 7. I have vfp 8 but have not started using it yet. Any help appreciated.

Joe Halloran
 
Joe,

I don't know any tool which will do precisely what you want. But, if you know the name of the components from the other project that are getting pulled in, there are several tools which will help. For example, if you can see that a PRG file called MyProg is being referenced, there are ways of searching the entire source code for references to MyProg.

If you have VFP 8.0, the easiest way is to use the Code References tool, on the Tools menu. You can set this to search an entire project or a directory. As well as searching your code, it will also look in the properties, which is useful if you have set a property in the form designer to point to a file in the other project.

If you have VFP 7.0 or below, I can recoommend Steve Dingle's project searching tool, which you can download free of charge from Steve's done a good job with this tool, and will appreciate your feedback.

Mike


Mike Lewis
Edinburgh, Scotland
 
Thanks Mike - I got the latest version of the project searcher - I have used it before and it is a very good tool - once I started searching though I realized that the references I needed would not be in the code but in the class and class location fields of the scx file. I think Steve's documentation says those fields are searched but when I tried eg "libs\libname.vcx" I didnt get any hits.

So what I ended up doing was scanning the project for the form names, putting them in an array and then searching each scx for classloc references that were not in the list of vcx's that I wanted and saving hits to a table - that gave me a list of objects with names and location info that I could use to readily identify the culprit and cleanup the references.

So now I have rough tool for the next time...sigh.

Thanks again....

Joe Halloran
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top