Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can i verify the existence of a directory in vfp 3
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00128253
Message ID:
00128268
Vues:
29
>>how can i verify the existence of a directory in vfp 3
>>
>>thanks
>You can sheck for the existance of a nul entry in the directory with the file() function. Below is a routine I typically use to do this.
>
>
>* IsDir Method
>lparameter tcPath
>if right(tcPath,1) # '\'
>	tcPath = tcPath + '\'
>endif
>return file(tcPath + 'nul')
>
Testing for NUL file does NOT work on ALL network OS's. ADIR seems to work on everything I've tried it on.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform