Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to display Locfile() dialog with _screen=OFF
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00437609
Message ID:
00437708
Views:
17
Also, what are the properties that I need to set to specify the file name and the extension to simulate the LOCFILE() function?

LOCFILE() searches the current directory and FoxPro path whether or not a path is specified. If a path is, and the file isn't found then the current directory and then the Fox path are searched until a match is found. If no match is found then, the dialog is displayed. To emulate this behavior, you'd have to:

1. If a path is specfied, use FILE() to check for the file.
2. If no path is specified or FILE() returns .F., check the current directory.
3. If 2. fails, parse the path. (FILE() with no path will do this).
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform