At 12:34 2002-12-20 -0800, you wrote:
tmp is allocated on the stack. As soon as this function returns to its called, the space holding tmp is going to be reused to hold other variables. You need to pass the address of a global variable or dynamically allocated memory to FldSetTextPtr in order to avoid having your field be redrawn with garbage.this got to be something easy. i have tried to alter the statement many different ways but the result is the same: i can't read the text displayed.Char tmp[25] = { 0 }; ... StrCopy(tmp, "max: "); StrCat(tmp, rec.size); FldSetTextPtr(field, tmp); /**** that gives me nonreadable charactors. i can't display correctly even before the StrCat *****/
This works because the record's size field sticks around later./* the following works but i need "max: " infront */ FldSetTextPtr(field, rec.size);
--
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com
--
For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
