char
char ( charCode : integer ) : string
Parameter | Type | Description | |
---|---|---|---|
charCode | integer | -> | Character code |
Result | string | <- | Character represented by the charCode |
Description
The char
command returns the UTF-16 character whose code is charCode.
Pass a UTF-16 value (included between 1 and 65535) in charCode.
tip
In editing a method, the command char
is commonly used to specify characters that cannot be entered from the keyboard or that would be interpreted as an editing command in the code editor.
Example
var myText : string
myText = "hello" + char(kCarriageReturn) + "world"