Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to stop a release process
Message
De
06/09/1996 21:11:35
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00007264
Message ID:
00007380
Vues:
43
>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
Fil
Voir

Click here to load this message in the networking platform