Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Quit Vs. Cancel
Message
From
19/10/2010 09:55:32
 
 
To
18/10/2010 18:18:01
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Miscellaneous
Thread ID:
01486064
Message ID:
01486115
Views:
98
>Hi friends.
>
>Excuse me for this question but I have a doubt
>
>I programed error events and when I can't manage it I alert the user the program is going to cancel...
>
>Then
>
>QUIT.
>
>The most times subsequents errors occur and I/we have to use Windows task admin. As I'm developping as it's run time
>
>If I use CANCEL instead of QUIT apparently I get what I want.
>
>If I read VFP help and it says "Always use QUIT to terminate a Visual FoxPro session. If you turn the computer off without issuing QUIT, open files might become damaged and data lost, and temporary work files that would normally be deleted may be left on disk." I might figure CANCEL is not a good solution.

That warning is for interactive VFP sessions. QUIT has no place in an application. Even CANCEL isn't a good idea in most shutdown scenarios. What you normally need to do is CLEAR EVENTS and let your application clean-up code run.

Tamar
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform