In replying to another topic by @MarkusWinter, I needed a list of all countries to replicate some behaviour seen in the ComboBox
. For future use, here’s a method that will return a String
array containing all countries. It might be useful for others.
Protected Function ListOfAllCountries() as String()
Return Array("United States of America", "Afghanistan", "Albania", "Algeria", _
"Andorra", "Angola", "Antigua & Deps", "Argentina", "Armenia", "Australia", _
"Austria", "Azerbaijan", "Bahamas", "Bahrain", "Bangladesh", "Barbados", _
"Belarus", "Belgium", "Belize", "Benin", "Bhutan", "Bolivia", "Bosnia Herzegovina", _
"Botswana", "Brazil", "Brunei", "Bulgaria", "Burkina", "Burma", "Burundi", "Cambodia", _
"Cameroon", "Canada", "Cape Verde", "Central African Rep", "Chad", "Chile", _
"People's Republic of China", "Colombia", "Comoros", _
"Democratic Republic of the Congo", "Republic of the Congo", "Costa Rica,", _
"Croatia", "Cuba", "Cyprus", "Czech Republic", "Danzig", "Denmark", "Djibouti", _
"Dominica", "Dominican Republic", "East Timor", "Ecuador", "Egypt", "El Salvador", _
"Equatorial Guinea", "Eritrea", "Estonia", "Ethiopia", "Fiji", "Finland", "France", _
"Gabon", "The Gambia", "Georgia", "Germany", "Ghana", "Greece", "Grenada", _
"Guatemala", "Guinea", "Guinea-Bissau", "Guyana", "Haiti", "Honduras", _
"Hungary", "Iceland", "India", "Indonesia", "Iran", "Iraq", "Republic of Ireland", _
"Israel", "Italy", "Ivory Coast", "Jamaica", "Japan", "Jonathanland", "Jordan", _
"Kazakhstan", "Kenya", "Kiribati", "North Korea", "South Korea", "Kosovo", "Kuwait", _
"Kyrgyzstan", "Laos", "Latvia", "Lebanon", "Lesotho", "Liberia", "Libya", "Liechtenstein", _
"Lithuania", "Luxembourg", "Macedonia", "Madagascar", "Malawi", "Malaysia", "Maldives", _
"Mali", "Malta", "Marshall Islands", "Mauritania", "Mauritius", "Mexico", _
"Micronesia", "Moldova", "Monaco", "Mongolia", "Montenegro", "Morocco", _
"Mount Athos", "Mozambique", "Namibia", "Nauru", "Nepal", "Newfoundland", _
"Netherlands", "New Zealand", "Nicaragua", "Niger", "Nigeria", "Norway", "Oman", _
"Ottoman Empire", "Pakistan", "Palau", "Panama", "Papua New Guinea", "Paraguay", _
"Peru", "Philippines", "Poland", "Portugal", "Prussia", "Qatar", "Romania", "Rome", _
"Russian Federation", "Rwanda", "St Kitts & Nevis", "St Lucia", "Saint Vincent & the", _
"Grenadines", "Samoa", "San Marino", "Sao Tome & Principe", "Saudi Arabia", "Senegal", _
"Serbia", "Seychelles", "Sierra Leone", "Singapore", "Slovakia", "Slovenia", _
"Solomon Islands", "Somalia", "South Africa", "Spain", "Sri Lanka", "Sudan", "Suriname", _
"Swaziland", "Sweden", "Switzerland", "Syria", "Tajikistan", "Tanzania", "Thailand", _
"Togo", "Tonga", "Trinidad & Tobago", "Tunisia", "Turkey", "Turkmenistan", "Tuvalu", _
"Uganda", "Ukraine", "United Arab Emirates", "United Kingdom", "Uruguay", _
"Uzbekistan", "Vanuatu", "Vatican City", "Venezuela", "Vietnam", "Yemen", _
"Zambia", "Zimbabwe")
End Function