I tried you code change and it does work
Now for the wierd thing
I added this
static void GetFieldData( UInt16 fld, Char *text )
{
FormPtr frm = FrmGetActiveForm();
FieldPtr fldP = FrmGetObjectPtr(frm, FrmGetObjectIndex(frm,fld));
if(FldGetTextLength(fldP))
{
StrCopy(text, FldGetTextPtr(fldP));
}
else
{
StrCopy(text, "UNKNOWN");
}
}
now if I dont fill in any of the fields and it writes this to
the record, the very first field has the first three characters
cut off
"OWN","UNKNOWN","Select","","Select","Select","NO","NO","NO","NO","NO","NO","YES","NO","","UNKNOWN","UNKNOWN"
however if I actualy put data into the field
"this is a test","21","Fair","test desc","good","A Gnoll
Cave","YES","NO","NO","NO","NO","NO","YES","NO","test comment","20000","NPC
test"
this all is ok
now it only does this for the very first field all the others get the full word
UNKNOWN
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/