>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?
>
Do you mean when you click on the VFP main screen close button, not the form's button? In this case the ON SHUTDOWN routine fires, not the form QueryUnload. You need to close all open forms in this case. See
How can I release all open forms FAQ #7975
If it's not broken, fix it until it is.
My Blog