Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


New_in
Version8.1.8



Expression_function



Panel
titleDescription

Takes a Unicode character code (as an integer), and returns the Unicode character as a string.

Note_friendly

This function can work for ASCII conversions as well, since Unicode and ASCII character codes match for all ASCII characters.



Panel
titleSyntax

char(number)

  • Parameters

Integer code - The character code for a Unicode character. 

  • Results

String - The corresponding Unicode character, as a one-character string.


Panel
titleExamples


Code Block
languageactionscript3
titleCode Snippet
char(88) //Returns "X".


Code Block
languageactionscript3
titleCode Snippet
char(425) //Returns "?". Ö


Code Block
languageactionscript3
titleCode Snippet
char(-1) //Returns Error_Expression Eval.