AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de Windows / Funciones de países y continentes
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Otros
Procedimientos almacenados
Advertencia
A partir de la versión 25, esta función se conserva por motivos de compatibilidad con versiones anteriores. Se recomienda utilizar la función Funciones de gestión de continentes y países.
Devuelve la lista de países según la norma ISO 3166-1.
Ejemplo
// Initialize the list of countries
ListAdd(LIST_CountryList, GetCountryList())
// Fill 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 shows how to fill in a Combo Box control 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 retrieved using gStoredValue.
//---------------------------------------------------------------
// -- Initialize the Combo Box control
gStoredValueEnable(COMBO_Country, True)
FOR EACH STRING sCountry OF GetCountryList(lcCaption + lcAlpha3Code) SEPARATED BY CR
ListAdd(COMBO_Country, ExtractString(sCountry, 1) + gStoredValue(ExtractString(sCountry, 2)))
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> = GetCountryList([<Information to return>])
<Result>: Cadena de caracteres
Lista (en orden alfabético) de países con la información solicitada en el siguiente formato:
[<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>: Combinación opcional de constantes de tipo Integer
Combinación de constantes utilizadas para seleccionar la información a recuperar:
lcAll
(Valor predeterminado)
Toda la información sobre los países.
lcAlpha2CodeCódigo ISO alfabético en 2 caracteres.
lcAlpha3CodeCódigo ISO alfabético en 3 caracteres.
lcCaptionPie de foto de Country.
lcNationEntero que corresponde a la constante del país para la función Nación.
lcNumericCodeCódigo ISO numérico.
Observaciones
  • La lista de países es la definida por la norma ISO 3166-1 el 26/06/2019.
  • Algunos países no tienen las constantes correspondientes a Nación. En este caso, el valor de la constante es set a 0.
Componente: wd290std.dll
Versión mínima requerida
  • Versión 21
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 27/05/2022

Señalar un error o enviar una sugerencia | Ayuda local