GetCountryList
GetCountryList() -> aCountriesReads the historical localization country list.
Overview
The historical manual describes GetCountryList() returning rows with three elements: abbreviation, name and two-digit identifier. This does not establish current ISO codes. Check compatibility and contents on the installed release; this historical catalog is not an up-to-date geopolitical source. (Sources: refs. 1–1.)
Syntax
GetCountryList() -> aCountriesReturn value
Array according to historical documentation.
Commented example
#Include "Protheus.ch"
User Function Ed465()
Local aCountries := GetCountryList()
// Check structure before accessing columns.
If ValType(aCountries) == "A"
ConOut(cValToChar(Len(aCountries)))
EndIf
Return NilShows returned row count without assuming a fixed list or count. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.
- Validate type, row size and code meaning before external integration.
- Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

Comments
There are no approved comments yet.
Sign in with Google or Microsoft to comment.