> From: Carmen Sandiego [mailto:[EMAIL PROTECTED]]
> Whenever I use StrAToI, the result is always 0.  What am I doing wrong?
> StrCopy(text, "Hello");
> Int32 intText = StrAToI(&text);

"Hello" is quite clearly not the string representation of an integer.
StrAToI converts from the string version of a number such as "42" to an
integer such as 42.  It's not for adding up ASCII values or anything like
that.

I suppose the SDK documentation could be more clear on exactly what StrAToI
actually does, though it does reference the standard C function atoi which
the experienced C programmer is expected to know.

What are you trying to accomplish?

-slj-


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

Reply via email to