Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ADIR() to find the directories
Message
From
14/03/2002 07:17:09
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
14/03/2002 07:12:32
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00632608
Message ID:
00632633
Views:
14
>Thanks a lot for your answer
>
>Your solution is working but in the array adir there are two more directories the . and the ..
>
>There is way to NOT include these 2 directories ? (Not programmatically - but using the ADIR() function)
>
>Thanks again
>Petros

"." refers to the current directory, ".." refers to the parent directory. AFAIK, there are no further options to omit those. You have to check for ".". I believe it isn't safe to omit the first two entries - I believe that in some circumstances you will not have those entries.

Hilmar.
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