Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FILE() returns .F. and it's false!
Message
 
 
À
02/08/2011 17:19:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Divers
Thread ID:
01519972
Message ID:
01519973
Vues:
70
>Hi friends:
>
>Till now I blame this to the fast user's fingers but now I know it's not so.
>
>Before trying to open a file I check if it exists.
>
>If FILE(cFile) returns .F. I create it.
>
>A few year ago I had this problem with Clipper (DOS) and a net. The result was I used to lose data. So I solved warning the user and the time I oblige him to read the warning was the time the S.O. found the file.
>
>Now I have the same problem but there's not a net.
>
>First Windows Vista, now Windows XP.
>
>Any of you know why FILE returns .F. althought the file exists?
>
>And more important. Do you know any secure option?
>
> Héctor

File may return false positives.

I suggest to check with

if empty(sys(2000,lcFullPathName)) && file doesn't exist
If it's not broken, fix it until it is.


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

Click here to load this message in the networking platform