Scripting > UNICOM Intelligence Function Library > Text functions > ChrW
 
ChrW
Returns the character that corresponds to a Unicode character code (sometimes called the code point).
Syntax
ChrW(Val)
Parameters
Val
Type: Type: Long
Unicode character code for a character.
(return)
Type: Type: Text
Character corresponding to Val.
Remarks
Valid Unicode character codes are integers from 0 to 65535. An error occurs if Val is less than 0 or greater than 65535.
If the current data value is NULL, Val is 0 and the return value is a string containing a single null character. ChrW cannot distinguish between a 0 received for a NULL value and an actual 0 passed in.
All values in the range 0-65535 are treated as valid Unicode characters, even though some of these values are not currently assigned as Unicode characters. In addition some values correspond to non-printable characters. Note that the returned character will be displayed correctly only if the font you are using supports that character.
Example
This example uses the ChrW function to return the character for a specified character code:
ChrW(97)
The return value is “a”.
See also
AscW
Text functions