Thanks John! This is exactly what I'm looking for! Jay
"John J. Corelli" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > I'll take a stab at this one and in the spirit of "paying it forward" hope I > can help someone else > on this forum as I have been helped in the past (very recently with just > this exact problem) > > Use a character array to handle your text. One such solution could be: > > #include <stringmgr.h> > static MyDisplayFunction() > { > char disp[8]; //need enough space for a the leading 0, 5 sig figs, > decimal point and the NULL > Boolean result; > FieldPtr fld; > FormPtr frm; > > frm = FrmGetFormPtr(MyFormId); // get a pointer to the form > StrCopy(disp,"0.03421"); > > // now get a field pointer > fld = FrmGetObjectPtr(frm,FrmGetObjectIndex(frm,MyFieldIdInThisForm)); > FldDelete(fld,0,10); // if you want to first delete what's there > FldSetInsertionPoint(fld, 0); // set the insertion point to the > beginning of the form > result = FldInsert(fld,disp,StrLen(disp)); > } > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Jay > Sent: Wednesday, October 25, 2000 10:05 AM > To: Palm Developer Forum > Subject: [Q] Why is this difficult??? > > > Is it me? I am simply trying to print out in a textfield the number 0.03421 > and I can't seem to do it. > Can someone help? > > Jay > > > > -- > For information on using the Palm Developer Forums, or to unsubscribe, > please see http://www.palmos.com/dev/tech/support/forums/ > > > -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
