Hi Naomi
>I made a slight modification in that code. If dodefault returned true you don't need to get lcErrorMsg.
Thanks. I will update it accordingly.
>But I don't see other problems and it looks like you're correct. The only other suggestion would be to move textbox validation to a form's custom method and call it in BeforeSave instead of drill-down textbox validation.
I guess I was not able to explain my problem. CodeBook has the following (puesdo) code:
cForm.Save()
IF NOT THIS.BeforeSave()
RETURN
ENDIF
THIS.AfterSave()
iForm.Save() does not have anything but iForm.BeforeSave() has the code you have seen, this is the one I have put in for my usage. But all of this is form code, yes I am validating key things in the MyForm.BeforeSave() but when I return a false, essentially cForm is doing a simple return without messaging. My code in iForm() does the messaging but I presume it will only message cForm problems. Actually I want to message MyForm generically in iForm.
Any advice on how to modify iForm.Save() or iForm.BeforeSave() without modifying the framework code in cForm?
Please advise.