PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
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
Returns the Country variable corresponding to an ISO code or to the country caption according to ISO 3166-1.
Versions 27 and later
Android This function is now available for Android applications.
Android Widget This function is now available in Android widget mode.
New in version 27
Android This function is now available for Android applications.
Android Widget This function is now available in Android widget mode.
Android This function is now available for Android applications.
Android Widget This function is now available in Android widget mode.
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
Syntax
<Result> = CountryGet([<Country name or ISO code>])
<Result>: Country variable
Country variable corresponding to the specified caption or ISO code.
<Country name or ISO code>: Optional character string
  • Caption of the desired country (in English, Spanish or French).
  • ISO code of the desired country.
If this parameter is not specified, the system country will be used.
WEBDEV - Browser code This parameter is mandatory. If the country caption is specified, it must be in the language of the framework.
Remarks
To find out the language defined in the options of Windows, use SysNation.
Related Examples:
Country and Continent functions Unit examples (WINDEV): Country and Continent functions
[ + ] This example shows how to use Country / Continent variables and functions.
Business / UI classification: Business Logic
Component: wd270std.dll
Minimum version required
  • Version 25
This page is also available for…
Comments
Click [Add] to post a comment