Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning .F. from PreSaveHook
Message
From
24/05/1998 07:29:23
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Title:
Returning .F. from PreSaveHook
Miscellaneous
Thread ID:
00101480
Message ID:
00101480
Views:
72
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
Map
View

Click here to load this message in the networking platform