Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Force exit from a form through one check
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Titre:
Force exit from a form through one check
Divers
Thread ID:
00389770
Message ID:
00389770
Vues:
55
I have been reviewing code in different controls and noticed that if you exit a BizObjNoListMainForm via the Close button it never runs the QueryUnload Event. It calls the form's RELEASE method which bypasses QueryUnload.

I have a need to have the form run a special method to make sure all data has been input for multiple BizObjs before the form is released. It seems like the form's different exit routines should all funnel through QueryUnload. That way any extra checking my form needs to do can be assured that it will take place. If the test does not pass then I would return a .F. and the form would not release.

Any reason why I wouldn't want to change how the Close button processes? Any other exits that might bypass QueryUnload that you have seen?

Thanks for any insights.
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform