Previous: 4.67.2.34. GetDir procedure To the Table of Contents Next: 4.67.2.36. GetMem procedure
4.67.2.34. GetDir procedure Table of Contents 4.67.2.36. GetMem procedure

- 4.67.2.35. -
Table of Contents
4. Standard Units
4.67. System - Built-in routines
4.67.2. System Unit Procedures and Functions
4.67.2.35. GetLocaleStr function


4.67.2.35. GetLocaleStr function

Targets: Win32 only


System Unit

GetLocaleStr function returns the specified locale string.

Declaration:
 function GetLocaleStr(Locale, LocaleType: Longint;
                        DefaultString: string): string;
Where:
Locale specifies the locale to retrieve information for. This parameter can be a locale identifier created by the MAKELCID macro, or one of the following predefined values: LOCALE_SYSTEM_DEFAULT - Default system locale.
LOCALE_USER_DEFAULT - Default user locale.
LocaleType specifies one of the LCTYPE constants to indicate the type of information to be retrieved. All LCTYPE values are mutually exclusive, with the exception of LOCALE_NOUSEROVERRIDE. An application may use the binary-OR operator to combine LOCALE_NOUSEROVERRIDE with any other LCTYPE value. If passed such an LocaleType value, the function bypasses user overrides, and returns the system default value for the requested LCID.

Remarks:
If the function succeeds, the return value is the requested locale string. Otherwise, the return value is DefaultString.


Previous: 4.67.2.34. GetDir procedure To the Table of Contents Next: 4.67.2.36. GetMem procedure
4.67.2.34. GetDir procedure Table of Contents 4.67.2.36. GetMem procedure

- 4.67.2.35. -