This section defines the constants that NLS uses to specify particular pieces of locale information. All the names begin with "LOCALE_". Names of constants that represent integer values begin with "LOCALE_I". All values for these constants are null-terminated Unicode strings. Maximum string lengths include the terminating null character. If no maximum length is indicated for a constant, its values can vary in length.
The following locale information constants are defined by NLS:
The following constants can be combined with other constants using the binary OR operator. The remainder of the constants are mutually exclusive, and therefore cannot be combined with one another.
LOCALE_NOUSEROVERRIDE
LOCALE_RETURN_NUMBER
LOCALE_USE_CP_ACP
Default and Neutral Locale Identifier Constants
The following constants represent default and neutral locale identifiers.
LOCALE_CUSTOM_DEFAULT
LOCALE_CUSTOM_UI_DEFAULT
LOCALE_CUSTOM_UNSPECIFIED
LOCALE_INVARIANT
LOCALE_NEUTRAL
LOCALE_SYSTEM_DEFAULT
LOCALE_USER_DEFAULT
Locale Name Constants
The following constants are used to specify a locale name. They are used by functions such as GetLocaleInfoEx.
Constants Used in the LCType Parameter of GetLocaleInfo, GetLocaleInfoEx, and SetLocaleInfo
This section lists the locale information constants that the application can use for the LCType parameter of GetLocaleInfo (Windows Me/98, Windows NT 4.0), GetLocaleInfoEx (Windows Vista), and SetLocaleInfo. The locale information is passed either as strings (default) or as integers. An integer value is specified by using the binary OR operator to combine a particular constant with a combining constant. See Combining Constants.
Constants Used by GetLocaleInfo and GetLocaleInfoEx Only
Constants Used by Both SetLocaleInfo and GetLocaleInfo/GetLocaleInfoEx
SetLocaleInfo uses the following constants to set particular pieces of user locale information, and GetLocaleInfo or GetLocaleInfoEx uses these same constants to retrieve those pieces of information. These constants are mutually exclusive of one another and of the constants used by GetLocaleInfo or GetLocaleInfoEx only. However, they can be combined with the combining constants using the binary OR operator. See Combining Constants.
LOCALE_ICALENDARTYPE
LOCALE_ICURRDIGITS
LOCALE_ICURRENCY
LOCALE_IDIGITS
LOCALE_IDIGITSUBSTITUTION
LOCALE_IFIRSTDAYOFWEEK
LOCALE_IFIRSTWEEKOFYEAR
LOCALE_ILZERO
LOCALE_IMEASURE
LOCALE_INEGCURR
LOCALE_INEGNUMBER
LOCALE_IPAPERSIZE
LOCALE_IREADINGLAYOUT
LOCALE_ITIME
LOCALE_S1159
LOCALE_S2359
LOCALE_SAM
LOCALE_SCURRENCY
LOCALE_SDATE
LOCALE_SDECIMAL
LOCALE_SGROUPING
LOCALE_SLIST
LOCALE_SLONGDATE
LOCALE_SMONDECIMALSEP
LOCALE_SMONGROUPING
LOCALE_SMONTHOUSANDSEP
LOCALE_SNATIVEDIGITS
LOCALE_SNEGATIVESIGN
LOCALE_SPM
LOCALE_SPOSITIVESIGN
LOCALE_SSHORTDATE
LOCALE_SSHORTTIME
LOCALE_STHOUSAND
LOCALE_STIME
LOCALE_STIMEFORMAT
LOCALE_SYEARMONTH
Closely Related Locale Information Constants
Many of the locale information constants previously listed are closely related, so that changing one affects the value of the others. The following table shows the relationships among these constants.
Do you want to know more about the built-in programming functions of Business Central? This module will discuss the different available functions that you can use when developing for Business Central.