|
|
|
|
|
- Properties specific to Country variables
- WLanguage functions that use Country variables
Country (Variable type) In french: Pays
The Country type is used to find out the characteristics of a country. The characteristics of this country can be: Note: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable. // Retrieve information about France oFrance is Country = CountryGet("FR") // Display caption STC_Country = oFrance.Name // Display phone number prefix STC_Phone = oFrance.PhoneNumberPrefix // Display flag IMG_Flag = oFrance.Flag // Display continent STC_Continent = oFrance.Continent.Name
MonPays is Country = PaysRécupère("TT")
Trace(MonPays.Name)
NationFramework(nationEnglish)
Trace(MonPays.Name)
Properties Properties specific to Country variables The following properties can be used to handle Country variables: | | | Property name | Type used | Effect |
---|
CodeISO2 | Character string | Two-character ISO code (ISO 3166-1 standard). This property is read-only. | CodeISO3 | Character string | Three-character ISO code (ISO 3166-1 standard). This property is read-only. | CodeISONum | Character string | Numeric ISO code (ISO 3166-1 standard). This property is read-only. | Continent | Continent variable | Continent of the country. This property is read-only. | Flag | Image | Flag of the country This property is read-only. | Name | Character string | Country name (in the language of framework). This property is read-only. | Nation | Integer | - Integer corresponding to the constant of the country for Nation.
- 0 if the country does not have a corresponding constant for Nation.
This property is read-only. | PhoneNumberPrefix | Character string | Prefix of country phone number. This property is read-only. |
Remarks WLanguage functions that use Country variables | | CountryGet | Returns the Country variable corresponding to an ISO code or to the country caption according to ISO 3166-1. | CountryList | Returns the list of all countries or countries of a given continent according to ISO 3166-1. |
Related Examples:
|
Unit examples (WINDEV): Country and Continent functions
[ + ] This example shows how to use Country / Continent variables and functions.
|
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|