Char()

A Char() function returns a character for a given code. Codes can be taken from UNICODE symbol list: https://www.w3schools.com/charsets/ref_utf_symbols.asp.

Syntax

Char(hexcode);
Char(deccode);

Function arguments

  • hexcode – (String) a hexadecimal code of the character;
  • deccode – (Decimal) a decimal code of the character.

Return value

This function returns String. The Char() function returns the character for the given code.

Examples

Example 1

A „result” variable will contain a char „☒” for the given hexadecimal code.

result = Char("2612");

Example 2

A „result” variable will contain a char „☒” for the given decimal code.

result = Char(9746);