>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