Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
File() returns .t. when file doesn't exist???
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00536063
Message ID:
00536160
Views:
9
This message has been marked as a message which has helped to the initial question of the thread.
use
not empty(sys(2000,"\\jkt02\apps_vfp\documents\released\sop\sop-001_90.doc"))
File() will search the path if the file is not found in the directory as specified, whereas sys(2000) will respect the specified path.



>From the command window I can type:
>
>
>?file("\\jkt02\apps_vfp\documents\released\sop\sop-001_90.doc")
>
>
>and this returns .f. as expected (the file doesn't exist). However inside an application I have I create a variable as follows:
>
>
>thisform.cDocFileName="\\jkt02\apps_vfp\documents\released\sop\sop-001_90.doc"
>** thisform.cDocFilename is built and the above is the final value)
>
>
>In the debugger, I put in the watch section file(thisform.cDocFilename) and the value returned is .T. !!!!
>
>Does anyone know why it does this?
>
>Thanks in advance,
>
>Kevin
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform