LocaleInfo$

Purpose:

Returns a string resulting from the Windows API function 'GetGeoInfo/GetGeoInfoEx'. The country can be passed as 'en-us', for example, the possible return values are listed in the Windows documentation. A short extract:

0: ISO_3166_ALPHA_2

1: ISO_3166_ALPHA_3

2: ISO_3166_NUMERIC

3: ISO_LCID

4: ISO_RFC1766

5: ENGLISH_FRIENDLY_NAME

6: NATIVE_NAME

7: TRANSLATED_FRIENDLY_NAME

8: TRANSLATED_OFFICIAL_NAME

9: LATITUDE

10: LONGITUDE

11: PARENT

12: DIALING_CODE

13: CURRENCY_CODE

14: CURRENCY_SYMBOL

15: TIMEZONES

16: OFFICIAL_LANGUAGES

17: LOCALE_LANGID

18: CODEPAGE

Parameter:

String          Country code/ISO Code of country, whose format is to be used. Format: <ISO639>-<ISO3166> e.g. de-de or en-us.

Number       Index of Locale Entry (see LCTYPE Constants (National Language Support) in the Microsoft documentation).

Return value:

String

Example:

LocaleInfo$("en-us",42)       Result: "Monday"