General information
Category:
Coding, syntax & commands
>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
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