Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need to do a file search in VFP
Message
 
To
11/05/2001 13:11:58
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00506277
Message ID:
00506303
Views:
19
>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


In your VFP foundation classes there is a class file called _utility.vct, and there is a sub class called "filer" which will search a selected directory and its subdirectories by setting a property to .T. The function is very similar to the finder that runs in the wondows environment, which allows you to browse for a top level folder (or drive root) and seach all the subfolders under it. I hope this points you in the direction you want to go.
MSCE, MCSP, Microsoft Channel Partner

Relax, Boss. We will meet the deadline! What? You want to add MORE? What do you mean, Over Budget?

Opinions and comments are the sole responsibility of the sender, and accuracy, correctness, or pertinence is considered coincidental.
Previous
Reply
Map
View

Click here to load this message in the networking platform