Name
GetCountryInfo -- get information about country (V7.1)
Synopsis
t = GetCountryInfo(ctry)
Function
This function can be used to retrieve additional information about a country. You have to pass one of Hollywood's country constants in the ctry argument. See GetSystemCountry for a list of countries.

GetCountryInfo() will then return a table with the following fields initialized:

Alpha2:
Alpha-2 country code as defined by ISO 3166-1.

Alpha3:
Alpha-3 country code as defined by ISO 3166-1.

Inputs
ctry
one of the country constants defined by Hollywood (see above)
Results
t
table containing country information
Example
t = GetCountryInfo(GetSystemCountry())
Print(t.Alpha2, t.Alpha3)
On a German system, this will print "DE" and "DEU".

Show TOC