What about StrPrintF(str,"%lu",123456789; ??
-----Original Message-----
From: Aaron Ardiri [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 16, 2000 2:06 PM
To: Palm Developer Forum
Subject: Re: Converting string to word
> Judging by the lack of emails in the archive on this matter, I have a
feeling
> that I'm being an idiot.... In any event :
>
> How do I convert a string like "123456789" and store it as a numeric? I
can't use StrAToI
> since integers max out at 65535.
why not??
break it up into two strings.. and then two words..
ie: StrAToI("12345") * 10000 + StrAToI("6789");
to be on the safe side, assume your numbers are 4 characters wide
0..9999 :)) and it should work!!
cheers
// 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/