Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement