Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Verifying the existence of a file
Message
 
 
À
23/08/2001 07:47:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00547744
Message ID:
00547926
Vues:
19
>The simplest and most reliable method I have encountered is
>
>
>return not empty(sys(2000,tcFile))
>
>
>
>This function will RELIABLY check for the presence of the file string in tcFile, It does not create arrays, and does not require any further searching thru the array. If the file is found on the drive/directory as specified in tcFile sys(2000) will return the name of the file, if it is not found sys(2000) will return '', therefore if the file is found this function will return True else False.


Thanks, Glenn. I was going to search by your name... :)
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform