Locale.Constructor(localeIdentifier As String)

From Xojo Documentation

Revision as of 12:49, 19 June 2019 by PLefebvre (talk | contribs) (PLefebvre moved page Locale.Constructor(localIdentifier As String) to Locale.Constructor(localeIdentifier As String) without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Constructor

Locale.Constructor(localeIdentifier As String)

New in 2019r2

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 USEnglishLocale As New Locale("en-US")