Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form - close button
Message
De
08/02/2007 04:17:17
Hans-Otto Lochmann
Dr. Lochmann Consulting Gmbh
Frankfurt, Allemagne
 
 
À
07/02/2007 17:47:35
Alex Grima
Progressive Consulting
Malta
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01193159
Message ID:
01193503
Vues:
11
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform