Please forget it, I've found the answer just after click on <i>Post it</i>, and it's the function <b><i>IsAdding</i></b>.
Sorry, but I'm introducing in CB, and sometimes I don't find the answers so quickly.
Thanks anyway
<i><font color="#663300">Hello everybody:
When adding a new record, I need to fill some fields just when the record is saved. The data is an invoice number, and I'm trying to use the same CBNewID() function, but I must get the number when the record is saved, not when it's added.
I can't use <b>obizibj.beforesave()</b> because I need to fill the field just when adding a new record not if I'm saving modifications. Exists any method for doing so?
Or, exists any method like <b>.IsNewandEmpty()</b> but just asking for <b><i>IsNew</i></b>?
Thank you.</font></i>
©2002 Miguel ¿ngel Guerrero |