All

I have had problems to develop a simple calculator because I don�t have
experience to manipulating Float Points. Anybody here could help me ?

  float sbp;

  frmP = FrmGetActiveForm();
  sbpP =   (FieldPtr) getObject(frmP, BSASbpField);   // get the Field
Pointer
  Handle hText = FldGetTextHandle(sbpP);
  CharPtr sbpText= (CharPtr) MemHandleLock(hText);


   sbp= (float)  sbpText;   // ERROR HERE !

I used

sbp =  FlpAToF(sbpText);

But when user access a number 5.5 for example, I did not show de result.

What is wrong ?

Thank you very much !

___________________________________
Paulo Ricardo Colacino
ConnectMed.com
research & development
Phone: +55-11-5507-7557 x245
Fax: +55-11-5505-8392
E-mail: [EMAIL PROTECTED]



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to