Thanks to all!
Dan
Aaron Ardiri wrote:
> > try:
> > j=0; result = 0;
> > for(i=StrLen(str)-1;i>=0;i--)
> > {
> > result += (StrAToi(str[j++]) << (0x10*i));
> > }
> >
> > or something like that. I can't remember how I did it without looking up
> > some old code but it went something like that example.
>
> result = 0;
> for (i=0; i<StrLen(str); i++) {
> result = result * 10; // shift the number over...
> result += (str[i] - '0'); // get the next digit
> }
>
> that would do it :))
>
> // az
> [EMAIL PROTECTED]
> http://www.ardiri.com/ <--- free games!
> +46 70 656 1143
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe, please see
>http://www.palmos.com/dev/tech/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/