Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DIRECTORY()
Message
 
 
À
15/12/1998 20:14:50
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00167873
Message ID:
00167911
Vues:
30
>>DECLARE aFiles[1,5]
>> IF ADIR(aFiles,lcRoot+lcFolder,'D')=1
>> * There's a file or folder
>> IF 'D' $ aFiles[1,5]
>> * it's a folder
>> ELSE
>> * there's a file with the name
>> ENDIF
>> ELSE
>> * There's no file or folder that matches
>> ENDIF
>>
>>
>>Thanks Ed, that works Great!
>
>And it's more reliable than DIRECTORY() in VFP5 as well. George Tasker has a class that handles some shortcomings of ADIR() in the files section as well; if you have problems with directories related to multiple '.' characters in file/directory names, his class works.

Can someone send me this class (and/or list of shortcomings) in DIRECTORY().


Thanks...Randy
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform