> 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 ?
Firstly, check that the sbpText contains a valid value..?
Secondly, is sbp a FloatType?
Regards,
Alan Ingleby
Systems Developer
ProfitLink Consulting Pty Ltd
309 Burwood Road
Hawthorn
Victoria 3122
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/