Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need to do a file search in VFP
Message
 
À
11/05/2001 13:11:58
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00506277
Message ID:
00506287
Vues:
16
>Does anyone have experience with programmatically performing a file search in VFP based on a top-level directory? This would be similair to what explorer gives you the capability of doing in the find files or computers tool.
>
>The file system object doesn't seem to be up to the task. I could use ADIR but then I have to iterate through all of the sub-direcories under the specified search directory which seems like a lot of work. Perhaps this is my only choice.
>
>Any suggestions?
>
>Thanks for your help!
>
>-JT

Jeff,

The only way to is recurse the directory and its children. In some ways the FSO is easier than ADIR() since it separates the directories and files into different collections. Using ADIR(), however, is faster. Cetin Basoz, I think had a routine that used ADIR() that he's posted here several times, including recently. You might want to check his recent posts.
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform