Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
'Find' text in project files
Message
From
07/07/1999 00:01:54
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00237118
Message ID:
00238113
Views:
12
>>Is there a tool to do a find in files for text in the entire project?
>>
>>For instance, say I'm trying to locate where an object (myForm, say) is instantiated. I'd like to do a 'find in project' or 'find in files' to search on the word myForm. Let's say it is found in a menu and another object, I'd like a list of the hits and the ability to double click on each and open the menu or object.
>>
>>Is this a utility that is already available?
>>
>>Thanks ever so much.
>>
>>Dawn
>
>I do not think there is. But when I needed to search through forms, classes, etc., for particular strings, I did the following:
>lnRetVal = adir(aForms, "*.SCX")   && *.VCX for classes, *.PJX for projects
>for j = 1 to lnRetVal
>    lcForm = aForms(j,1)
>    use (lcForm) excl
>    for i = 1 to fcount()
>        if type(field(i)) = "M"  && because info is usually in memo fields
>           locate for "SOME_VALUE" $upper(field(i))
>           do while !eof()
>              _do_what_you_want_here_
>              continue
>           enddo
>        endif
>    endfor
>endfor
There is a program called VersaTools from VersaTech Software (versasoft.com) that does exactly what you're requesting. It has some other cool features too.

Good Luck!
Previous
Reply
Map
View

Click here to load this message in the networking platform