Print

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);

 

Czy artykuł był pomocny?
0 na 5 gwiazdek
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
5
How can we improve this article?
How Can We Improve This Article?