Information générale
Catégorie:
Codage, syntaxe et commandes
>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
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement