Home » U++ TheIDE » U++ TheIDE: Compiling, Linking, Debugging of your packages » String to int
Re: String to int [message #27589 is a reply to message #27588] |
Sun, 25 July 2010 01:08   |
|
morley wrote on Sat, 24 July 2010 23:00 | How to I convert a upp String, assigned to say "122", to an int?
I saw a function to get individual characters from a string so I suppose I could concatenate these into a char array and use a_toi or something, but I presume there is something simpler.
Thanks!
|
Hi morley,
Yes, there is something simpler. For string<->integer there are StrInt() and IntStr(), for double DblStr and StrDbl plus few more for other types.
Honza
|
|
|
Goto Forum:
Current Time: Sun Jul 06 03:07:30 CEST 2025
Total time taken to generate the page: 0.04440 seconds
|