Xbasic

COUNTRIESOFWORLD Function

Syntax

Country_List as C = CountriesOfWorld([C format ])

Arguments

Country_List

An alphabetical listing of countries of the world.

format

Optional. Specifies formatting information and whether to return the country name and/or country code. "name" = Country name "code" = Country code

Description

Create a CRLF delimited list of countries. Format string can contain 'Name' and 'Code'. E.g. To get data in form 'code - country', specify a format of 'code - name'

Discussion

The COUNTRIESOFWORLD() function returns a CR-LF delimited list of countries in the world. The function also optionally also returns a country code.

Example

? countriesOfWorld("code - name")
= 001 - United States
002 - Afghanistan
003 - Albania
? countriesOfWorld("name")
= United States
Afghanistan

See Also