General information
Category:
Coding, syntax & commands
Environment versions
Network:
Windows 2003 Server
>>When I get out from LOCFILE() window by "Cancel" open an error window: "File does not exist." "Cancel, Suspend, Ignore". This is not good for users. How can I manage this situation in my program?
>>(VFP 9.0)
>
>I think you should use getfile() instead of locfile(). This one gives you an empty return value if the user cancels.
The problem with the GETFILE() command is that it allows you to return any file. The LOCFILE() is looking for a specific file name to be returned.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only