PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Returns the list of countries according to the ISO 3166-1 standard.
Versions 22 and later
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
Java This function is now available for the Java applications.
PHP This function is now available for the PHP sites.
New in version 22
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
Java This function is now available for the Java applications.
PHP This function is now available for the PHP sites.
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
Java This function is now available for the Java applications.
PHP This function is now available for the PHP sites.
Example
// Initialize the list of countries
ListAdd(LIST_CountryList, GetCountryList())
// Fills a Table control with the list of countries
// (as well as information about each country).
FOR EACH STRING sCountry OF GetCountryList(lcAll) SEPARATED BY CR
TableAdd(TABLE_Country, sCountry)
END
// This example explains how to fill a combo box with the list of countries.
// The caption of the country is displayed.
// The numeric code of the country is stored.
// The code of the country is stored and it is retrieved by gLink.


// Initialization process of the combo box
gLinkActivate(COMBO_Country, True)
FOR EACH STRING sCountry OF GetCountryList(lcCaption + lcAlpha3Code) SEPARATED BY CR
ListAdd(COMBO_Country, ExtractString(sCountry, 1) + gLink(ExtractString(sCountry, 2)))
END

// Process for selecting a row in the combo box
Info("The name of the country is: " + COMBO_Country..DisplayedValue, ...
"The country code is: " + COMBO_Country..StoredValue)
Syntax
<Result> = GetCountryList([<Information to Return>])
<Result>: Character string
List (in alphabetical order) of countries with the requested information in the following format:
[<Caption Country 1>][ + TAB + <Alpha ISO Code on 2>] [ + TAB + <Alpha ISO Code on 3>]
[+ TAB + <Numeric ISO Code>] [+ TAB + <Value of Nation Constant>] + CR + ...
[<Caption Country N>][ + TAB + <Alpha ISO Code on 2>] [ + TAB + <Alpha ISO Code on 3>]
[+ TAB + <Numeric ISO Code>] [+ TAB + <Value of Nation Constant>]
<Information to Return>: Optional combination of Integer constants
Combination of constants used to select the information to retrieve:
lcAlpha2CodeAlphabetical ISO code on 2 characters.
lcAlpha3CodeAlphabetical ISO code on 3 characters.
lcNumericCodeNumeric ISO code.
lcCaptionCaption of country.
lcNationInteger corresponding to the constant of the country for Nation.
lcAll
(Default value)
The entire information about countries.
Remarks
  • The list of countries is the one defined by the ISO 3166-1 standard at 09/01/2015.
  • Some countries don't have any corresponding constants for Nation. In this case, the value of the constant is set to 0.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230std.dll
Windows Mobile wp230std.dll
Java wd230java.jar
Linux wd230std.so
Android wd230android.jar
Minimum required version
  • Version 21
This page is also available for…
Comments
Click [Add] to post a comment