General information
Category:
Forms & Form designer
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
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only