Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
QueryUnload and Release Thisform
Message
 
À
16/12/1999 20:38:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00305043
Message ID:
00305070
Vues:
25
>If issuing a Release command/method will not trigger QueryUnload, what best option should I have to handle the 'save before quitting' routine.

QueryUnload fire if you RELEASE FormName or the user clicks the close button in the right side of teh title bar. If you issue Thisform.Release then QueryUnload does not fire.

How to handle that, well nothing says teh QueryUnload has to fire as an evetn, it can be cvalled too.

In my form class's Release method I have code that;
* Form Base class release
IF NOT Thisform.QueryUnload()
   NODEFAULT
   RETURN .F.
ENDIF
That covers all the bases.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform