General information
Category:
The Mere Mortals Framework
Title:
Returning .F. from PreSaveHook
I want to do some validation before saving records in a form based on the CBizObjMaintenanceForm class. I want to abort the save if the validation fails. I tried putting "RETURN .F." in the PreSaveHook method to see if this is the way to go. It works great! The save does not happen, and focus returns to the OK button. However, a click on the List tab instead of the OK button results in a Save if the user answers yes to the messagebox that asks "Do you want to save your changes first?"
Any suggestions?
Thanks,
Dave
Next
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