I keep getting an invalid record error with this code.  Can anyone point
anything out?

//create a new record
 recHandle = DmNewRecord(dbRef, &maxIndex, 16);
 if (recHandle == 0)
 {
  error = DmGetLastErr();
  ErrAlert(error);
 }

 total = "8/9/001:00 pm";

 /check if the data will write successfully
 error = DmWriteCheck(&recHandle, 0, StrLen(total));  /the error comes here
 if (error != 0)
 {
  ErrAlert(error);
  return  gotData;
 }

/write the data into the record
 error = DmWrite(&recHandle, 0, total, StrLen(total));
 if (error != 0)


  ErrAlert(error);
  return gotData;
 }

--Zach



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

Reply via email to