Skip to main content
Version: 8.1

char

New in 8.1.8

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

    • 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.