Hi,
I keep having problem with the Float Manager Functions. I am not able to
convert string to floating-point number and floating-point number to string.
I keep getting a zero no matter what I key in the field. I will appreciate
any help. Thanks in advance.
I'm using PRC-Tools 2.0 and PalmOS SDK3.5. I attach some of my codes :
#define ctrlPtr(frm,id) (FrmGetObjectPtr (frm, FrmGetObjectIndex (frm, id)))
Char* ptrRightField;
Char* ptrLeftField;
FlpDouble fdTest;
Err eRC;
ptrRightField = FldGetTextPtr (ctrlPtr(form,fldRight));
fdTest = FlpAToF(ptrRightField);
eRC = FlpFToA(fdTest, ptrLeftField);
len = FldGetTextLength(ctrlPtr(form,fldLeft));
FldDelete (ctrlPtr(form,fldLeft), 0, len);
FldInsert (ctrlPtr(form,fldLeft), ptrLeftField, StrLen(ptrLeftField));
regards,
Lim Kah Ann
____________________________________________________________________
Get free email and a permanent address at http://www.amexmail.com/?A=1
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html