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.
Char(hexcode);Char(deccode);Function arguments
Dział zatytułowany „Function arguments”- hexcode – (String) a hexadecimal code of the character;
- deccode – (Decimal) a decimal code of the character.
Return value
Dział zatytułowany „Return value”This function returns String. The Char() function returns the character for the given code.
Examples
Dział zatytułowany „Examples”Example 1
Dział zatytułowany „Example 1”A „result” variable will contain a char „☒” for the given hexadecimal code.
result = Char("2612");Example 2
Dział zatytułowany „Example 2”A „result” variable will contain a char „☒” for the given decimal code.
result = Char(9746);