Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
QueryUnload and Release Thisform
Message
From
16/12/1999 22:49:34
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00305043
Message ID:
00305088
Views:
25
Thanks, Jim. But is there a logical reason why the release command/method will not trigger the queryunload event.

By the way, i did a code that is quite patterned after your suggestion.

For the CloseEvent():
LOCAL lnAsnwer
lnAnswer = THISFORM.DoBeforeClose()
DO CASE
CASE lnAnswer <> 2 && not cancelled
THISFORM.Release()
ENDCASE

And, for the QueryUnload():
LOCAL lnAnswer
lnAnswer = THISFORM.DoBeforeClose()
DO CASE
*!* CASE lnAnswer = 6 && Yes, just in case i'll have more codes
*!* CASE lnAnswer = 7 && No
CASE lnAnswer = 2 && Cancel
NODEFAULT
ENDCASE
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform