Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
On shutdown routine not working in VFP 9
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
On shutdown routine not working in VFP 9
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01002456
Message ID:
01002456
Vues:
112
Has there been a change in VFP 9 with on shutdown or how the close button works? I had a routine that works fine in VFP 7 when you click on the close button. In VFP 9 it doesn't work.

Here's the shutdown
	********************************************************
Function shutit
	********************************************************
	Local lShutDown
	lShutDown = .T.

	For nCnt = _Screen.FormCount To 1 Step -1
		* Backward because we're going to change things
		If _Screen.Forms[nCnt].BaseClass = "Form"  && skip toolbars
			If _Screen.Forms[nCnt].QueryUnload()
				_Screen.Forms[nCnt].Release()
			Else
				lShutDown = .F.
				Exit
			Endif
		Endif
	Endfor
	Release Main
	On Shutdown
	Quit
Endfunc && shutit
********************************************************
Regards,

E.R. Gilmore
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform