Thanx for this help Fox,
Could you add to the reading part a bit though?
For example, What kind of pointer should I be using to get to the strings.
I need to first get past my struct which is at the beginning of the record
to get to my strings.
I tried:
MemPtr RecP;
MemHandle RecH
RecP = MemHandleLock(RecH);
// attempt to get pointer to beginning of strings.
RecP += (sizeof(MyRecType) + 1);
I also tried casting the pointer to a char* like:
RecP = (char*) MemHandleLock(RecH);
But this gives me an "illegal type" error.
Any suggestions?
Thanx a bunch..
Jim
"Ingo Claro Fox" <[EMAIL PROTECTED]> wrote in message
news:44394@palm-dev-forum...
>
> you must use DmStrCopy to write the text to the databse to pack the
contents.
> Then when you read the record and have a pointer to it you do:
> recP+=StrLen(recP)+1
> to catch the next string.
>
>
> DmWrite(RecPtr,StructSize,prefs.String1,String1Len);
> > DmWrite(RecPtr,(StructSize + String1Len),prefs.String2,String2Len);
> > DmWrite(RecPtr,(StructSize + String1Len +
> >String2Len),prefs.String3,String3Len);
> > MemHandleUnlock(NewRecordH);
> > DmReleaseRecord(DBRef,Location,true);
>
> Ingo Claro Fox
> [EMAIL PROTECTED]
>
>
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/