Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detecting if Close [X] button of form is pressed?
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00813774
Message ID:
00813783
Views:
6
>That will work. Howeve, I'm reading about NODEFAULT. I don't understand. This is not a method/property of the form, nor am I finding it as a function?
>
>What is the syntax or how do I issue a NODEFAULT?

The NODEFAULT is a command. When executed it sets internal VFP flag which tells VFP not to execute default behavior for the current event. Because it just set the flag it can be included anywhere in the code of the event. Default behavior depends on the event. For example, for the LostFocus of the control default behavior is to move to the next control in tab order. Including NODEFAULT in the LostFocus will keep focus on that control. The NODEFAULT can also be excuted conditionaly. For example in the QueryUnload
IF MESSAGEBOX("Close the Form?", 4+16+256) <> 6  	&& Yes
	NODEFAULT
ENDIF
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform