Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Release form from toolbar & Query Unload
Message
De
14/09/1998 06:41:54
Christian Cote
Les Logiciels Onoma Inc.
Longueuil, Québec, Canada
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00135996
Message ID:
00136068
Vues:
27
I have a NODEFAULT statement into my QueryUnload method. I tried something. I commented my NODEFAULT into the QueryUnload method. Now closing the form from the toolbar does not close the form when the QueryUnload returns .F. But when I close the form from the close box of the form, it releases the form even if the QueryUnload method returns .F.

I should mention you that I use the QueryUnload method to check if any changes are made to the data. If any, I then use the messagebox to ask the user if he or she wants to save, undo, or cancel. If the user chooses cancel then the form is not closing. Since I use this in severals forms, I've put the code in my baseclass for this type of form.

Thank's again
Christian
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform