return Charcode from String

G

GandaSalada

Is there a function that return the charcode of a string?
It would be a kind of reverse Chr()
Thank you
 
R

RoyVidar

GandaSalada said:
Is there a function that return the charcode of a string?
It would be a kind of reverse Chr()
Thank you

Try the Asc() function

? Asc("a") -> 97
 
D

Douglas J. Steele

Try the Asc function (or AscB). Note, however, that it works on one
character at a time.
 
Top