Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ADIR() to find the directories
Message
From
14/03/2002 07:30:31
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00632608
Message ID:
00632635
Views:
9
>I don't think so. Just delete these two rows from the array. Just write a function that returns the ADIR() result without these two lines. You can use ASCAN() to find them and ADEL() to delete. Remember to redimension the array minus two rows afterwards.
>
>Armin

Warning: When I test on the root directory, I do not get those two entries.

Also, I am not sure whether all OS work the same here.

Therefore, automatically deleting the first two entries seems dangerous to me. Better to check for left(dirname,1) = "." - no decent filename will start with a dot.

Grüsse, 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
Next
Reply
Map
View

Click here to load this message in the networking platform