Code function
Syntax
Code(str)
Description
Use the Code function to return the numerical Unicode UTF-16 value for the first character in the string str. (Normally you would pass this function a single character.) If the string starts with a non-BMP Unicode character, the value returned will be that of the Unicode high surrogate of the character (the first value of the surrogate pair).
Returns
Returns a Number value equal to the character code for the first character in str.
Related Topics