Link Search Menu Expand Document

String.CharAt Method

Explanation Returns the character at the specified byte position.
Call format var n = str.CharAt( indx )
Return value Returns one character at the specified position as a String type.
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.CharAt(3), "\n");
    
Related item CharCodeAt method