Link Search Menu Expand Document

String.CharCodeAt Method

Explanation Returns the character code of the character at the specified byte position.
Call format var n = str.CharCodeAt( indx )
Return value Returns the character code of Shift_JIS as an integer value.
Arguments integer indx Position of the character to be extracted
Specify a number starting from 0
Exception Func-4 Invalid argument
Example of use
var str = new String("ABCDEF");
print(str.CharCodeAt(3), "\n");
    
Related item CharAt method