Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Destroy Method
Message
From
20/05/1997 10:03:10
 
 
To
20/05/1997 00:50:24
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00032765
Message ID:
00032946
Views:
40
>>>Hello!
>>>
>>>Did you tried Return .f. within DESTROY method? I just check this trick and
>>>it work fine.
>>>HTH...
>>>
>>>Have a happy day
>>>Vladimir Shevchenko
>>>
>>>> Is it possible to stop a form from being destroyed even if the destroy
>>>> method is invoked?
>>
>>I invoked a RETURN .F. in the destroy event but it just destroys the form reguardless. I am using VFP3, is this an issue?
>
>As far as I know, you can't stop Destroy. You must use QueryUnload method instead. If you return .f. from QueryUnload, the release/destroy processed is stoped.

Guess that makes sense because Destroy is one of the last events to fire.
By the time it is invoked various destructive events have already occurred.

Just wondering if NODEFAULT instead of RETURN .f. in the QueryUnload event would also work.

Gene
Previous
Reply
Map
View

Click here to load this message in the networking platform