Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Deny leaving a Page
Message
From
21/07/2000 09:36:47
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00393557
Message ID:
00395377
Views:
12
Barbara,

Thanks for the reply, that makes sense now... we are in trouble now!


>John,
>
>Yes and No < grin > In the Form.QueryUnload code put
>if <  Required conditions are met >
>   DoDefault()
>   return .T.
>else
>   return .f.
>endif
>
>In your form release code put
>
>if Thisform.QueryUnload()
>   Thisform.release()
>else
>   <  message about why the user can't exit  >
>endif
Thanks to Bruce for reminding me about the DoDefault().
>
>
>QueryUnload() is code that is specifically designed to determine if the the form SHOULD be released. It's called first, before any control is deactivated, released, etc.
>
>HTH
>Barbara
>
>
>
>>Barbara,
>>
>>Would the call to QueryUnload come before the ThisForm.Release()?
>>
>>How does QueryUnload differ from the Release method of a form?
>>
>>Thanks
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform