Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trouble With Errors
Message
 
To
14/09/1998 23:48:44
David Turnedge
Turnedge Associates
Sydney, Australia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00136581
Message ID:
00136698
Views:
21
>I'm trying to capture all the anticipated errors in my programs and, for the errors that slip through, I have an ON ERROR procedure called BadError:
>
>PROCEDURE BadError
>
>=MESSAGEBOX(error message and number code here)
>CLEAR EVENTS
>
>ENDPROC
>
>The only problem is that CLEAR EVENTS doesn't clear events - the program continues to run as though nothing happened after the message box is displayed.
>
>Any ideas how to force my program to quit back to Windows?
>
>David Turnedge
>Sydney, Australia

Have tried CANCEL instead of CLEAR EVENTS, Actually you can try both.

PROCEDURE BadError

=MESSAGEBOX(error message and number code here)
CLEAR EVENTS
CANCEL

ENDPROC

Bye
Jayesh
- Jayesh
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform