ASCII codes

Monkey Forums/Monkey Programming/ASCII codes

Leo Santos(Posted 2011) [#1]
Hi,

Is there a Monkey equivalent to the Blitzmax function "Asc()" that returns an Int containing the ascii code for a string character?

I'm trying to convert some old code, but hit a road block with this one and can't find anything looking at the docs or searching this forum.

Thanks!


degac(Posted 2011) [#2]
See String methods/features

Local ss:string="Hallo"
Print ss[0] '---> output Asc("H")



Leo Santos(Posted 2011) [#3]
Hah, that's simple enough!
Thanks,
Leo.


hardcoal(Posted 2011) [#4]
Ive decided to complain less and learn more :)