General information
Category:
Forms & Form designer
>Hello Hans,
>
>Try putting your code in the QueryUnload() method of your form followed by NODEFAULT command i.e.
>
>example:
>
>in the QueryUnload()
>
>thisform.btnclose.click
>NODEFAULT
Hi Alex,
this gives a much better control over the event-/method-sequence.
From QueryUnload() I will call the OnClose() method, where I handle all application specific things, the form is responsible for. If everything goes right, then OnClose() will call Release(), which will call Destroy(), which will call Unload(), all of which handle the usual stuff.
If anything goes wrong in OnClose(), then with the help of NODEFAULT I now can easily go back to the form.
Thank you
Hans
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