From: "Palm" <[EMAIL PROTECTED]>
> RecordHandle = DmNewRecord(DatabaseHandle, &index, 64);
>
Create a new record 64 bytes long - ok

> DmWrite(RecordPointer, 0, dat, StrLen(dat)+1);
>
Write a string of unknown length into that buffer - it's gonna fail
sometime.

> I am using this to write into a database. It works somewhat. However, if
the
> string dat becomes more than about 20 or 30 characters, I get an error:
>
I'm not sure why it would fail at 20 to 30 characters (are you using
a multi-byte character set?), but it will definitely fail at some point.
You should probably set a RecordSize variable to StrLen(dat)+1
and use that for both the New and Write calls.

Chris Tutty


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

Reply via email to