Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Limit the deepness of getdir() ???
Message
 
 
To
06/02/2005 07:02:27
Albert Beermann
Piepenbrock Service Gmbh & Cokg
Osnabrück, Germany
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
00984291
Message ID:
00984575
Views:
21
Albert,

You'll have to roll your own. Populate a treeview with only the levels you want to display. If you need some ideas adapt the code from the Treeview101 sample over on my website.

>Hello everybody !
>
>Is there a way to limit the deepness of the subdirectory stucture in getdir() or getfile() commands with a parameter or something else ???
>
>Example:
>Directory structure of c:
>c:
>>d1
>>>d11
>>>>d111
>>>>>d1111
>>d2
>>>d22
>>>>d222
>>>>>d2222
>>d3
>>>d33
>>>>d333
>>>>>d3333
>
>I only want all subfolders and there subfolders from a given startdirectory.
>startdirectory = c deepnessparameter = 2
>
>c:
>>d1
>>>d11
>>d2
>>>d22
>>d3
>>>d33
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform