Simple question...
I want a dynamic List box that I get entries for from a database. From
memory...
the database struct is
struct dbstructType {
int ref;
char* text;
} *curRec;
The input to add into the text is a text field:
curRec->text=FldGetTextPtr(...);
1. is that the right way to code that?
2. When I write:
MemHandle hMem=DmNewRecord(gDBListBoxH,&position,sizeof(curRec));
MemPtr p=MemHandleLock(hMem);
DmWrite(p,0,&curRec, sizeof(curRec))
MemPtrUnlock(...)
...
will that encompass the size of the field text and does that include the
NULL (0) terminator? Is it writing the entire text field? I couldn't find a
good description of this function.
thanks
chris
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/