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