DmNewRecord returns a handle of 0 if it fails, and you would call
DmGetLastErr to get the error code.

DmWrite returns an error code (errNone if no error), and you can use
DmWriteCheck to validate what you intend to pass to DmWrite (if necessary) -
it returns errNone if no error, or dmErrNotValidRecord dmErrWriteOutOfBounds
if an error occurs.


-Tom

> Hello,
> I'm having some issues with getting data in and out of the database. I need
> to know when the data fails, but I don't know how to use DmGetLastErr(). The
> only way I know of checking is using an if to compare it one by one against
> known error constants provided by the data manager. Does anyone have a
> quicker method? One that would identify the error for me.
> 
> Thanks,
> Yogesh Saletore
> 
> 


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to