Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error handler to stop a procedure?
Message
From
14/07/1999 14:12:38
 
 
To
14/07/1999 13:46:42
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00241384
Message ID:
00241403
Views:
10
To add to what Mike said, you should keep the error traping code in the Error() method of the form, but remove the ON ERROR in the Click() event of the button. The current object Error() method is allways the first method fired after an error has occured. The ON ERROR may prevent the form from closing by keeping a reference to it.

>In the beginning of a the click procedure I have:
>ON ERROR DO ERROR WITH ERROR()
>
>In the error procedure I have:
>THISFORM.RELEASE
>
>I have 'THISFORM.RELEASE' because I want to close the current form and have focus go to the form that was previously in focus. But, the current form is not released and the click procedure continues on after the error. How can I stop this procedure?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform