Usina BRAdvPL Guide
Sign in
← All topics
FUNCTIONUnder review

GetCountryList

GetCountryList() -> aCountries

Reads the historical localization country list.

GetCountryListAdvPL
01 · OVERVIEW

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.)

02 · SYNTAX

Syntax

GetCountryList() -> aCountries

Return value

Array according to historical documentation.

03 · PRACTICAL EXAMPLE

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 Nil
Expected result

Shows 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.

BEST PRACTICES
  • 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.

Related content

REFERENCES
  1. Waterloo Ferreira da Silva. AdvPL — O Manual, versão 1.0; p. 348. Referência histórica. Accessed on 2026-10-27.
Status
Under review
Page created on
Last reviewed on
Original language
Portuguese
Reviewed by
Usina.BR
0 approved comment(s)

Comments

There are no approved comments yet.

Sign in with Google or Microsoft to comment.

Powered by Usina Docs · Alpha