Mike:

Yes actually I declared float Y[5] in global variable, Y[0] is not right
declare.
I doubt the function FlpAToF(recText) works properly.

Thank you for your attention.




-----Original Message-----
From: Michael Yam [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 28, 2000 9:56 AM
To: Palm Developer Forum
Subject: Re: Eric, please help on FlpAToF(Char * s) function!


I'm not sure I understand the following declaration which is probably a
typo:

  float Y[0];

Are you declaring an array of floats with zero elements?

--Mike Y.

-----Original Message-----
From: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
To: Palm Developer Forum <[EMAIL PROTECTED]>
Date: Friday, January 28, 2000 8:11 AM
Subject: Eric, please help on FlpAToF(Char * s) function!


Eric:

I using FlpAToF function to convert 1.12, 1.2 kind ascii to float, the
code as:

float Y[0];
CharPtr     recText;
FlpCompDouble Stack;

Stack.fd =FlpAToF(recText);
Y[0]=Stack.d;


Sometimes it works such as 1.2, but sometimes such as 0.47  doesn't
work(return 0)even
though recText 0.47 draw on the screen.

Please help me out.


Thank you for your response.

Steve



--
For information on using the Palm Developer Forums, or to unsubscribe,
please
see http://www.palm.com/devzone/mailinglists.html




-- 
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palm.com/devzone/mailinglists.html

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to