Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FILE() returns .T. when included in EXE
Message
From
04/11/2011 17:31:03
 
 
To
04/11/2011 17:27:34
Joel Leach
Memorial Business Systems, Inc.
Tennessee, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Miscellaneous
Thread ID:
01528126
Message ID:
01528127
Views:
101
This message has been marked as the solution to the initial question of the thread.
>I'm sure this has been answered here before, but it's hard to find with search. I am using FILE() to check if a file exists at a specific location. This code has worked for years, but now I am including the file in question in the EXE. Now, FILE() returns .T. even though the file does not exist at the specified location. Is there a good way around this?

You're right, that's known behaviour. I believe one workaround is to use ADIR( ).
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform