|
|
|
|
Devuelve la lista de todos los países o países de un continente determinado según la norma ISO 3166-1. Observación: La lista de países es la definida por la norma ISO 3166-1 el 15/10/2019.
// Initialize the list of countries arrCountryList is array of Countries = CountryList() FOR EACH oCountry OF arrCountryList ListAdd(LIST_CountryList, oCountry<§Name) END // Fill a Table control with the list of countries // (as well as information about each country). arrCountryList is array of Countries = CountryList() FOR EACH oCountry OF arrCountryList TableAddLine(TABLE_Country, oCountry.Name, oCountry.ISOCode2, oCountry.ISOCode3, ... oCountry.ISOCodeNum, oCountry.Continent.Name, oCountry.Flag, ... oCountry.Nation, oCountry.PhoneNumberPrefix) END
// This example shows how to fill in a Combo Box control with the list of European countries. // The caption of the country is displayed. // The numeric code of the country is stored. // The code of the country is stored and retrieved using gStoredValue. //--------------------------------------------------------------- // -- Initialize the Combo Box control arrCountryList is array of Countries = CountryList(continentEurope) gStoredValueEnable(COMBO_Country, True) FOR EACH oCountry OF arrCountryList ListAdd(COMBO_Country, oCountry.Name + gStoredValue(oCountry.ISOCode3)) END //-------------------------------------------------------------- // -- Selecting a row in the Combo Box control Info("The name of the country is: " + COMBO_Country.DisplayedValue, ... "The country code is: " + COMBO_Country.StoredValue) Sintaxis
<Result> = CountryList([<Continent>])
<Result>: Array de variables de tipo Country Array de variables de tipo Country que contiene la lista de países. <Continent>: Cadena de caracteres opcional, variable de tipo Continent opcional o constante opcional Continente cuyos países deben figurar en la lista. Este parámetro puede corresponder a:- una variable de tipo Continent,
- el nombre del continente (en español, inglés o francés).
- una constante que identifica el continente (o un código de continente de 2 caracteres):
| | continentAfrica | África (la constante vale "AF"). | continentAntarctica | Antártida (la constante vale "AN"). | continentAsia | Asia (la constante vale "AS"). | continentEurope | Europa (la constante vale "EU"). | continentNorthAmerica | América del Norte (la constante vale "NA"). | continentOceania | Oceanía (la constante vale "OC"). | continentSouthAmerica | América del Sur (la constante vale "SA"). |
Si no se especifica este parámetro, el resultado contiene la lista de todos los países. Clasificación Lógica de negocio / UI: Lógica de negocio
Esta página también está disponible para…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|