Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FILE() returns .F. and it's false!
Message
 
 
To
02/08/2011 17:19:38
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01519972
Message ID:
01519973
Views:
69
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform