Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form - close button
Message
From
08/02/2007 04:17:17
Hans-Otto Lochmann
Dr. Lochmann Consulting Gmbh
Frankfurt, Germany
 
 
To
07/02/2007 17:47:35
Alex Grima
Progressive Consulting
Malta
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01193159
Message ID:
01193503
Views:
10
>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
Map
View

Click here to load this message in the networking platform