General information
Category:
Coding, syntax & commands
>Hi Guys,
> I want to stop the "release process" In the RELEASE methode of the form. This is posible ?
>
>All your comments will be appreciate.
>Rock
I am quoting from VFP Help:
"The QueryUnload event occurs before the Destroy event. The ReleaseType property is set prior to the QueryUnload event being called.
The QueryUnload event occurs when CLEAR WINDOWS, RELEASE| WINDOWS, or QUIT is executed in code, when the user double-clicks the Control-menu box, or when the user chooses Close from the Control-menu on a Form.
Note: The QueryUnload event does not occur if you issue the RELEASE command on the Form in code or invoke the Form's Release
method.
Issuing NODEFAULT in the QueryUnload event procedure prevents the Form from unloading."
So, the only situation when QueryUnload is not automatically issued is when you issue a Release in code. That meens that you must handle "the release stop" in QueryUnload and call it before you call Release:
if ThisForm.QueryUnload()
ThisForm.Release()
endif
Previous
Next
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