Information générale
Catégorie:
Gestionnaire d'écran & Écrans
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
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