Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Closing form
Message
 
 
To
19/03/2000 03:06:38
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00346355
Message ID:
00347588
Views:
23
Actually my QueryUnload code looks something like:
with This
	if not .AddQueryUnload()
		NoDefault
		return
	endif
	if type(".lCanceled") = "L"
		if .lCanceled
			.RevertTables()
		else
			.UpdateTables()
		endif
	else
		.UpdateTables()
	endif
	.Release()
endwith
My Form class has a property, lCanceled that is always set to false. My Cancel button sets that property it to True if clicked. My Cancel and Exit buttons then call the form's QueryUnload. So if the user clicks the form X or the VFP app X buttons all shutdowns according to Hoyle.
Mark McCasland
Midlothian, TX USA
Previous
Reply
Map
View

Click here to load this message in the networking platform