Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Close Box - fire a method?
Message
 
To
10/11/1998 15:37:33
Tyson Bonn
Myers and Stauffer Consulting
Harrisburg, Pennsylvania, United States
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00156350
Message ID:
00156365
Views:
23
>It will fire the QueryUnload of the Form and, if memory serves me right, if you
>return .F. the close operation is aborted.

That's a common misconception which I used to share.

Form.QueryUnload
LOCAL llRetVal

llRetVal = .T.
IF ThisForm.JobCompleted = .F.
    NODEFAULT
    llRetVal = .F.
ENDif

RETURN llRetVal
Form.cmdClose.Click
IF ThisForm.QueryUnload()
    ThisForm.Release()
ENDif
The NODEFAULT is what stops the unload: returning .F. is only useful if you add code to your exit button.
My blog
My consulting page
My home page

Member of the Trim Your Auto-Quote Campaign!
What's another word for thesaurus?
Previous
Reply
Map
View

Click here to load this message in the networking platform