Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Check for a file
Message
De
06/10/1998 20:12:57
 
 
À
06/10/1998 06:55:50
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00144148
Message ID:
00144414
Vues:
22
>File() is not thrustable all the time. Instead you might try :
handle=fopen(cFilename)
>if handle > 0
>   =fclose(handle)
>   return .t.
>endif
>return ferror()
This would return .t. if file found and accessible otherwise an error code indicating why cannot be opened (ie: exists but not accessible).
>Cetin

Thanks for the reply Cetin, I was just wondering if there was another way besides low level that would work as expected. The FERROR() is a new one on me I just checked it out in the help file... That should work...

Thanks
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform