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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search in all files ??

Status
Not open for further replies.

ChrizzA

Programmer
Jun 8, 2005
11
NL
Hello,

I've been working with foxpro now since 2 months or so. Before this i worked with several others development environments like Delphi, Visual studio, C++Builder, Sun mobile java ide etc.

ALL these ide's have a "search in all files" function. The problem occurs when for instance i see a function made by my coworker but i don't know where i can find that function. At this point i want to search all files in my project for this function so i can see what it does and how it use it.

At first we were working with foxpro 7 and i thought that it maybe was just missing in version 7 or something, but we recently gone to the new version 9. And still there is no decent search function!! I just can't understand that any self respecting software ide doesn't have this. Are we supposed to know where everything we can find everything or search for hours ?
 
In VFP 9 there is a tool you can use, but I forget what it is called. Sorry, I've heard it referenced here, but I don't have VFP 9 installed.

Anyway, try this:
DO FORM Home() + "tools\filer\filer.scx"


-Dave Summers-
[cheers]
Even more Fox stuff at:
 
Go to Tools->Code References. This will bring up a window with a search option in the menu.

Regards,
Jim
 
If you aren't in vfp9, you can use 3rd party tools like GoFish ( ) which work very well (but not as well as VFP9's Code References!!

For anybody who has VFP9 but hasn't looked at Code References, here are some highlights:
o All searches are saved so you can go back to an old search (you can clear them, too)
o By double clicking a row showing a found occurance, it'll go right into the PRG, Class Designer, Form Designer, DBF Browse, etc, to edit it.
o Multiple search results can be combined into one big list
o Search results can be auto-replaced with a new string
o Limited Regular Expressions can be used
o If you have a project open, you can scope the "all files" to just files in that project
o You can always specify filters using file masks ( eg: *.prg *.vcx, or MyApp*.prg )
o Results can be exported
o An old search can be "refreshed" (search again)
o comments can be excluded/included/or only thing searched.


- Bill

Get the best answers to your questions -- See FAQ481-4875.
 
Go to Tools->Code References.

This gives you search and replace through the project. If I'm just looking for something then I find it quicker to right-click on an expression in the code and pick "View Definition" to see where it's defined or "Look Up Reference" to see where it's used.

Geoff Franklin
 
ChrizzA,
Note, VFP 8.0 also has the Code References tool.

Rick
 
ChrizzA said:
And still there is no decent search function!! I just can't understand that any self respecting software ide doesn't have this. Are we supposed to know where everything we can find everything or search for hours ?

Well, the first "Search Function" that Visual FoxPro has that you might want to try out is in the help file that comes with Visual FoxPro. [wink] If you type in "Search in all files" and click the List Topics button you'll find that "Code References" is in the top 5 items shown.

Visual FoxPro's IDE has some areas where it could be better, but this area has been as good as gold since Visual FoxPro 8.

boyd.gif

SweetPotato Software Website
My Blog
 
Well just for the record we never had foxpro 8 so i never heard off code references, but i'll check it out offcourse. Didn't really have had much time to experiment with version 9 yet but i expected to find it in the regular search options :)

Anyway thank you for all the replies.

Chris
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top