Xojo.Core.Locale.Constructor(localeIdentifier As Text)

From Xojo Documentation

Revision as of 17:24, 11 August 2019 by Gperlman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Constructor

Xojo.Core.Locale.Constructor(localeIdentifier As Text)

Creates a locale with the given localeIdentifier.

Notes

As an example, "en-US" is used as a localeIdentifier for English in the United States.

Links to look up codes:

Exceptions

RuntimeException when an invalid localeIdentifier is used.

Sample Code

Create an English US locale:

Var locale As New Xojo.Core.Locale("en-US")