I am a new Palm Developer and I have an easy question. I have been looking
through the forum for about 2 hours now and cant find my answer so here is
the question. I have a char * buffer that all I want to do is edit the
CurrentRecord in my palm database and put the information in my buffer into
that record. The forum shows how to do more complex things but doesnt have
just a simple Edit example. I have tried to do this many ways but get
errors every way I try to do it. strncpy2 is just an advanced strcat.
buffer has "3,x,33,2" in it at the end of this snippit of code...
char * buffer;
char * line;
if (event->data.ctlEnter.controlID == MemoPadEditUpdateButton)
{
frm = FrmGetActiveForm();
fldIndex = FrmGetObjectIndex(frm, MemoPadEditEditFieldField);
buffer = strncpy2(line, "3", 1);
buffer = strncpy2(buffer, ",x,", 3);
buffer = strncpy2(buffer, "333", 15);
buffer = strncpy2(buffer, ",", 1);
strncpy2(buffer, "2", 3);
buffer = line;
//Need to put buffer into current record...
}
Any help would be greatly appreciated...
Thanks,
Bob
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/