Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Returning .F. from PreSaveHook
Message
De
24/05/1998 07:29:23
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Titre:
Returning .F. from PreSaveHook
Divers
Thread ID:
00101480
Message ID:
00101480
Vues:
73
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform