Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Locfile()
Message
From
22/09/2009 16:40:45
 
 
To
22/09/2009 16:09:27
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01425645
Message ID:
01425666
Views:
40
>>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
Map
View

Click here to load this message in the networking platform