char
This function is used by Ignition's Expression language.
Descriptionβ
Takes a Unicode character code (as an integer), and returns the Unicode character as a string.
note
This function can work for ASCII conversions as well, since Unicode and ASCII character codes match for all ASCII characters.
Syntaxβ
char(code)
Parametersβ
| Type | Parameter | Description |
|---|---|---|
| Integer | code | The character code for a Unicode character. |
Resultsβ
String - The corresponding Unicode character, as a one-character string.
Examplesβ
Code Snippet
char(88) //Returns "X".
Code Snippet
char(425) //Returns "?".
Code Snippet
char(-1) //Returns Error_Expression Eval.