Use this function to assign a new locale definition that you want the system to use when generating certain regional and language specific formats.
A "locale" identifies regional or language specific settings that are used to generate certain values such as currency formatting, calendar month names, and date and time formats.
SetValue(locale)
Parameter |
Description |
Defaults to |
---|---|---|
Locale | Accepts a string that specifies the name of a locale. | No default. If the parameter is omitted, no locale change will occur, but the function can still return the current locale value. |
The return value is the previous locale value as a text string. For a list of possible values, see the Locales list.
oldLocale = SetLocale("USD")
This example sets the new locale value to be the one that defines the United States. The previous setting is captured in the old Locale variable. You can restore the original setting later with this statement:
SetLocale(oldLocale)
© Copyright 2014, Oracle and/or its affiliates. All rights reserved. Legal notices.