CHRCODE†
Format†
CHRCODE( string [ , pos ] )
Function†
- Returns the UCS-2 code of a single character in a string.
- UCS-2 codes are compatible with ASCII codes within the range of ASCII characters (single byte characters, alphanumeric).
Arguments†
- string
- The string for which you want to know the UCS-2 code
- pos
- The position of the character whose code is desired (first character = 0). Can be omitted. If omitted, it is treated as if 0 is specified.
Return value†
- If successful, the converted value
- If unsuccessful, 0
Related†
Version†
- YAYA: Available from the start
- Available in AYA5.8
Example†
CHRCODE('A') // Returns the integer `65`
CHRCODE('ABC', 2) // Returns the integer `67`
CHRCODE('伺') // Returns the integer `20282`