found it
If I clicked save button before I entered data
this
size = StrLen(name)+1+ StrLen(level)+1+ StrLen(expFld)+1+ StrLen(desc)+1+
StrLen(mItems)+1+ StrLen(startz)+1+ StrLen(heritage)+1+ StrLen(citytask)+1+
StrLen(sabatoge)+1+ StrLen(repet)+1+ StrLen(access)+1+ StrLen(freeport)+1+
StrLen(qeynos)+1+ StrLen(complete)+1+ StrLen(comment)+1+ StrLen(spoints)+1+
StrLen(npc)+1;
would end up with null lengths for some of the StrLen
It manifested itself by cutting off the first 4 characters
So i added this in the
case frmOpenEvent:
// Repaint form on open
form = FrmGetActiveForm();
FrmDrawForm(form);
StrCopy(heritage, "NO");
StrCopy(citytask, "NO");
StrCopy(sabatoge, "NO");
StrCopy(complete, "NO");
StrCopy(access, "NO");
StrCopy(freeport, "NO");
StrCopy(qeynos, "YES");
StrCopy(repet, "NO");
StrCopy(desc, "NONE");
StrCopy(comment, "NONE");
StrCopy(name, "NONE");
StrCopy(npc, "NONE");
StrCopy(level, "0");
StrCopy(spoints, "0");
to be sure all of it had a value incase the record was saved
with out the user putting data in
However what I really want to do it not allow a save unless
all fields are completed
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/