Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Directory list
Message
From
25/10/2011 08:02:01
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
24/10/2011 12:19:24
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
01527190
Message ID:
01527261
Views:
29
>Hi All,
>
>I am currently writing a program that is supposed to read data from several folders. Example: there are some sub folders (data1,data2 and so on) in the DATABASE folder. May I know how to list out all the sub-folder in the DATABASE folder? Can ADIR() do the job? or some other way?
>
>Thanks for your advice in advance.

In principle, ADIR() works, but you would have to program for recursion (that is, if you expect folders within folders within folders...). The other tools mentioned in thread (or some of them? - not quite sure) provide the required recursion, with minimal programming effort.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform