General information
Category:
Forms & Form designer
>>>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only