main logo
Subject: Re: BeforeSave() and AddToErrorMsg()
Author: Ed Leafe
Posted: 2002/04/08 09:19:11
 
View Entire Thread
New Search


<i><font color="#663300">I am sorry to has misled you. I have a terrible Typo in there, the

This is the code in my bo_mAccounts in BeforeSave()

should read BeforeDelete(). The save stuff works alright.
Sorry again for the typo.</font></i>

My comments remain the same. The flow through Save() and BeforeSave() is identical to the flow through Delete() and BeforeDelete(). If BeforeDelete() returns .F., Delete() should return FILE_CANCEL, and the form should display the error message. If not, you need to step through the code to determine why. Typically, it is because a method is overridden without the proper calls to DODEFAULT(), or without properly passing the correct return values.
<font color="#cc0000"> ___/
/
__/
/
____/</font>
Ed Leafe
 
©2002 Ed Leafe
<-- Prior Message New Search Next Message -->