First, you seem to be writing to 'packed', wherever that is. Shouldn't you be writing to 'aptr', which is the newly-created pointer to the record. And aptr should be a Char or UInt8.

Second, are you handling your pointers correctly. Why do you use "a.notes" as a pointer to StrLen, but use "&a.notes" as a pointer to DmWrite? I think they should both be "a.notes".

Bob.

[EMAIL PROTECTED] wrote:

Bob Thank you very much for your previous help  it didnt work
also tried with following code

aptr=MemHandleLock(newrecord); length += StrLen(a.Name);
DmWrite(packed,0 ,&a.Name,length);
length += 1;
DmWrite(packed,length,"\0",1);
length += 1;
DmWrite(packed,length ,&a.notes,StrLen(a.notes));
MemHandleUnlock(newrecord);




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

Reply via email to