Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Will FILE() always find a file in .EXE?
Message
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01396423
Message ID:
01396447
Views:
99
>Just some FYI's that come to mind during my previous testing with this.
>
>1. Assuming there is an embedded file in the EXE and an external one, you can force it to use the external one by fully qualifying the path to the file.

Most VFP commands will disregard the path and use internal file.

>
>2. The internal file can not be written to, so there is an inherent way to tell which one is selected via try... catch...

The same will happen if external file has read-only attribute.

>
>3. You may be able to tell which one is selected by obtaining the full path to the file select using the DBF() function and if the folder does NOT exist (since it will specify the folder where is resides on the development machine, you can then tell that it is using the internal one.

Not reliable because the file may exist in that folder as well.
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform