Skip to main content

Character.FromNumber

Converts a number to a text character.

Syntax

Character.FromNumber(
number as number
) as text

Remarks

Returns the character equivalent of the number.

The provided number should be a 21-bit Unicode code point.

Examples

Example #1

Convert a number to its equivalent character value.

Character.FromNumber(9)

Result:

"#(tab)"

Example #2

Convert a character to a number and back again.

Character.FromNumber(Character.ToNumber("A"))

Result:

"A"

Example #3

Convert the hexadecimal code point for the "grinning face" emoticon to its equivalent UTF-16 surrogate pair.

Character.FromNumber(0x1F600)

Result:

"#(0001F600)"

Category

Text.Conversions from and to text