Gweniviere
MIS
Hello peeps...
I am trying to issue a CLEAR EVENTS from an error routine called from ON ERROR. The error routine is contained in my main.prg which called the original form that has thrown the error. In the error routine I issue a CLEAR EVENTS (for the original form) then call my error form and finally do a READ EVENTS. Everything works as expected except that my error form immediately shuts down and the app closes.
This leads me to believe that the CLEAR EVENTS is not in fact working. Am I calling the CLEAR EVENTS in the wrong place and if so, where should I be calling it?
Oh...all forms are modal and as Top-Level forms.
Sample code....
On Error Do ErrorScreen
DO FORM splash
READ events
DO FORM main
READ EVENTS
Procedure ErrorScreen
CLEAR EVENTS
Do Form ErrorScreen
READ EVENTS
Return
I am trying to issue a CLEAR EVENTS from an error routine called from ON ERROR. The error routine is contained in my main.prg which called the original form that has thrown the error. In the error routine I issue a CLEAR EVENTS (for the original form) then call my error form and finally do a READ EVENTS. Everything works as expected except that my error form immediately shuts down and the app closes.
This leads me to believe that the CLEAR EVENTS is not in fact working. Am I calling the CLEAR EVENTS in the wrong place and if so, where should I be calling it?
Oh...all forms are modal and as Top-Level forms.
Sample code....
On Error Do ErrorScreen
DO FORM splash
READ events
DO FORM main
READ EVENTS
Procedure ErrorScreen
CLEAR EVENTS
Do Form ErrorScreen
READ EVENTS
Return