Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trapping the CLOSE button in a form
Message
 
To
04/10/1998 00:07:32
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00143403
Message ID:
00143697
Views:
19
NODEFAULT is not a function. Get rid of the () and it should work.

>about the NODEFAULT thing...
>
> I tried this without luck in the QueryUnload():
>
> If thisform.edit_mode=.t.
> NODEFAULT()
> else
> return .t.
> endif
>
>
> One case worked, but the other did not. I cannot remember which now (without doing some testing). Do you see anything wrong with this? I would really like this feature to work.
>
>
>
>>The QueryUnload event fires when the user clicks the close box (it doesn't fire if you do a THISFORM.Release() in code). You can then run any code you want. If you want to stop the form from closing, use NODEFAULT in the QueryUnload event.
>>
>>>If a form has the CLOSABLE property set to .T., then the X
>>>"Close" button appear in the top right-hand corner of the form.
>>>How does one trap the user clicking on that CLOSE button,
>>>ie. is there an event/method associated with it ?
>>>
>>>Thanks.
>>>Michel.
Previous
Reply
Map
View

Click here to load this message in the networking platform