Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
QueryUnload and Release Thisform
Message
De
16/12/1999 21:19:48
 
 
À
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:
00305063
Vues:
24
>If issuing a Release command/method will not trigger QueryUnload, what best option should I have to handle the 'save before quitting' routine.

There are a couple of ways to do this. You can put all of your checking code in the QueryUnload event, and in the case that the user wants to cancel a close, issue NODEFAULT and RETURN .F.. Then have you close button say
IF THISFORM.QueryUnload()
	THISFORM.Release()
ENDIF

Or, you can have a common OnClose routine that is called from both the CLose button and the QueryUnload event

IF !THISFORM.OnClose()
	NODEFAULT
ENDIF
Erik Moore
Clientelligence
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform