Chr - Built-in String Function¶
Purpose¶
Chr returns the character associated with the specified character code.
Syntax¶
Chr(int)
Arguments¶
| Argument | Required | Description |
|---|---|---|
int |
Yes | Any valid integer expression containing the character code |
Example¶
Return Chr(97) // returns "a"
Return Char(10004) // returns "✔"
Returns¶
Variant with a string (VT_BSTR) value
See Also¶
Notes¶
- When
intcannot be converted to an integer, a runtime error is generated. - The range of
intis between 0 and 65535. Control characters (< 32) are allowed. - If Unicode values are desired, it is possible to enter the Unicode character directly in the function editor.