charval (<string>)
numeric
The integer character values of one of more characters in a string. The return values are in fact "wide character" values. In the case of Windows systems "wide character" values are Unicode values.
The number of values returned by this function depends on the number of characters in the string parameter.
The inverse function to this is the char function.
<string>
The character(s) to be queried.
This function replaces the ascii function which has been deprecated.
After execution of this statement, ch will contain 65.
numeric ch = charval('A')
After execution of this statement, chvals will contain 65, 32 and 97.
string mys = 'A b' numeric chvals[] = charval(mys)