Text.FromUnicodeCodepoint

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!
Shared Method

Text.FromUnicodeCodepoint(codepoint As UInt32) As Text

Supported for all project types and targets.

Creates a new Text object from a single Unicode code point value.

Notes

Visit Unicode Lookup to get decimal values to use with this method.

fa-exclamation-circle-32.png
An UnsupportedFormatException will be raised if codepoint is not a Unicode scalar value (i.e. it is a high-surrogate code point or a low-surrogate code point).

Sample Code

Get the EndOfLine character:

Dim EOL As Text = Text.FromUnicodeCodepoint(10)

Get the trade mark character (™):

Dim tradeMark As Text = Text.FromUnicodeCodepoint(8482)

Get the pi character (π) using its hex value:

Dim piChar As Text = Text.FromUnicodeCodepoint(&h3C0)