Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What actualy happens when you click the X
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00772451
Message ID:
00772476
Views:
10
>what coding and sequence of events happen when you close a form with the X at top right of the form...?
>TIA

Since you've already gotten the answer, here's more info than you were asking for.

Assume you've got a close command button on a form. If you place code in its click event like this
IF ThisForm.QueryUnload()
  ThisForm.Release
ENDIF
and in the form's QueryUnload event
LOCAL llresult
llresult = < some logical condition >
IF NOT llresult
  NODEFAULT
ENDIF
RETURN llresult
You can easily keep the form from being closed while something like changes are pending.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform