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
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01002456
Message ID:
01002516
Views:
25
>>
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 >>>
You have to call your shutdown function before your Read Events in order to work...
Jojo R. dela Cuesta, B.Sc.
eConsultant, Programmer
Dalplus Technologies
http://www.dalplus.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform