Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ADIR() to find the directories
Message
De
14/03/2002 07:30:31
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00632608
Message ID:
00632635
Vues:
11
>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)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform