ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / Windows functions / Country and Continent functions
  • Properties specific to Country variables
  • WLanguage functions that use Country variables
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
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.
Example
// 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
// Trinité et Tobago en FR et en US
MonPays is Country = PaysRécupère("TT")
// Affichage du pays en FR
Trace(MonPays.Name) // Trinité-et-Tobago
// Affichage du pays en US
// Changement de la langue du framework
NationFramework(nationEnglish)
Trace(MonPays.Name) // Trinidad and Tobago
Properties

Properties specific to Country variables

The following properties can be used to handle Country variables:
Property nameType usedEffect
CodeISO2Character stringTwo-character ISO code (ISO 3166-1 standard).
This property is read-only.
CodeISO3Character stringThree-character ISO code (ISO 3166-1 standard).
This property is read-only.
CodeISONumCharacter stringNumeric ISO code (ISO 3166-1 standard).
This property is read-only.
ContinentContinent variableContinent of the country.
This property is read-only.
FlagImageFlag of the country
WEBDEV - Browser codeLinuxiPhone/iPadIOS Widget This property is not available.
This property is read-only.
NameCharacter stringCountry name (in the language of framework).
This property is read-only.
NationInteger
  • 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.
PhoneNumberPrefixCharacter stringPrefix of country phone number.
This property is read-only.
Remarks

WLanguage functions that use Country variables

CountryGetReturns the Country variable corresponding to an ISO code or to the country caption according to ISO 3166-1.
CountryListReturns the list of all countries or countries of a given continent according to ISO 3166-1.
Related Examples:
Country and Continent functions Unit examples (WINDEV): Country and Continent functions
[ + ] This example shows how to use Country / Continent variables and functions.
Minimum version required
  • Version 25
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/20/2024

Send a report | Local help