Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
On shutdown routine not working in VFP 9
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
On shutdown routine not working in VFP 9
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01002456
Message ID:
01002456
Views:
116
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
Next
Reply
Map
View

Click here to load this message in the networking platform