Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
'Find' text in project files
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00237118
Message ID:
00237123
Vues:
14
>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
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform