Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Locfile() + cancel generates error - any other way?
Message
From
28/02/2002 10:14:50
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Title:
Locfile() + cancel generates error - any other way?
Miscellaneous
Thread ID:
00626414
Message ID:
00626414
Views:
48
Hello all.

I'm using 2.6 (no chance for upgrades at this moment).

In an application, I'm using locfile() to allow the user to select which file to import. However, if the user presses cancel, the program generates an error. This is even specified in help. I don't really like this b/c I think the user should be able to cancel the process and return to the main menu. Also, the next line of code checks if a file was selected, if not - return to master.

Is there a way to get around this error or a better option for me to use?

I appreciate it,
Sunshine
Next
Reply
Map
View

Click here to load this message in the networking platform