Returns the ISO code of a country that corresponds to its name according to ISO 3166-1.
Remark: It is also possible to get the ISO code of a country corresponding to a different type of ISO code (for example, the 2-letter ISO code corresponding to a numeric ISO code).
// France ISO code
sFranceISOCode is string = GetCountryISO("France")
Syntax
<Result> = GetCountryISO(<Country name or ISO code> [, <Type of ISO code>])
<Result>: Character string
Country ISO code.
<Country name or ISO code>: Character string
- Country ISO name.
- Country ISO code. The coding of this ISO code is different from the desired type of coding.
<Type of ISO code>: Optional Integer constant
Type of ISO code returned:
| |
lcAlpha2Code | Alphabetical ISO code on 2 characters. |
lcAlpha3Code | Alphabetical ISO code on 3 characters. |
lcNumericCode | Numeric ISO code. |