PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • Properties specific to the description of Country variables
  • WLanguage functions that use Country variables
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
The Country type is used to find out the characteristics of a country. The characteristics of this country can be:
Remark: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
Example
// Récupération des informations sur la France
oFrance is Country = CountryGet("FR")
// Affichage du libellé
LIB_Pays = oFrance.Name
// Affichage du préfixe de numéro de téléphone
SAI_Téléphone = oFrance.PhoneNumberPrefix
// Affichage drapeau
IMG_Drapeau = oFrance.Flag
// Affichage du continent
LIB_Continent = oFrance.Continent.Name
// Trinidad and Tobago in English and French
MyCountry is Country = CountryGet("TT")
// Display country in English
Trace(MyCountry.Name) // Trinidad and Tobago
// Display country in French
// Change framework language
NationFramework(nationFrench)
Trace(MyCountry.Name) // Trinite-et-Tobago
Remarks

Properties specific to the description of Country variables

The following properties can be used to handle a Country variable:
Property nameType usedEffect
ISOCode2Character stringTwo-character ISO code (ISO 3166-1 standard).
This property is read-only.
ISOCode3Character stringThree-character ISO code (ISO 3166-1 standard).
This property is read-only.
ISOCodeNumCharacter 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
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.
NameCharacter stringCountry name (in the language of framework).
This property is read-only.
PhoneNumberPrefixCharacter stringPrefix of country phone number.
This property is read-only.

WLanguage functions that use Country variables

Versions 25 and later
CountryGet
New in version 25
CountryGet
CountryGet
Returns the Country variable corresponding to an ISO code or to the country caption according to ISO 3166-1.
Versions 25 and later
CountryList
New in version 25
CountryList
CountryList
Returns 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