I have a problem with QueryUnload.
If I click on VFP Close button I get Form.ReleaseType = 1 instead of Form.ReleaseType = 2.
That is maybe because I have statement ON SHUTDOWN goApp.MyProcedureForShutdown() but I am not sure.
Any ideas?
>>I have IF statement in Destroy event of Form class in which if it is .F. I need to stop Destroy event.
>>
>>Scenario is actually like this: user clicks Close button (red "X" button of Form) and if IF condition is .F. then Form must not be closed.
>>
>>How to do that?
>
>Use QueryUnload method (add NODEFAULT there for your condition) and check for ReleaseType property.
>
>See
Re: Form - close button Thread #
1193159