CountriesNameSwedich_To_CountriesCodeName ( )

Function stats

Average user rating
328
379
9999
Support
FileMaker 7.0 +
Date posted
03 April 2015
Version
1
Recursive function
No

Author Info
 Ronny

2 functions

Average Rating None

author_avatar



 

Function overview

Prototype

CountriesNameSwedich_To_CountriesCodeName  ( Land )


Parameters

Land  Country names in Swedish


Description

Tags:  ISO3166   ISO 3166   Country code  

Return two country code letters according from ISO 3166 for Swedish country namnes.

Examples

Sample input

Sverige


Sample output

SE

 

Function code

/* RETURN THE TWO LETTER ISO 3166 FROM SWEDISH CONTRIESNAME */
/* For exampel, Sverige return SE */
/* Version 1 */
/* Created by: Ronny Andersson, Packing AB, 2015-04-03 */

If ( IsEmpty ( Land ) = False ;
Let (
~Land = Land
;
Case (
~Land = "Sverige" ; "SE" ;
~Land = "Afghanistan" ; "AF" ;
~Land = "Albanien" ; "AL" ;
~Land = "Algeriet" ; "DZ" ;
~Land = "Amerikanska Jungfruöarna" ; "VI" ;
~Land = "Amerikanska Samoa" ; "AS" ;
~Land = "Andorra" ; "AD" ;
~Land = "Angola" ; "AO" ;
~Land = "Anguilla" ; "AI" ;
~Land = "Antarktis" ; "AQ" ;
~Land = "Antigua och Barbuda" ; "AG" ;
~Land = "Argentina" ; "AR" ;
~Land = "Armenien" ; "AM" ;
~Land = "Aruba" ; "AW" ;
~Land = "Australien" ; "AU" ;
~Land = "Azerbajdzjan" ; "AZ" ;
~Land = "Bahamas" ; "BS" ;
~Land = "Bahrain" ; "BH" ;
~Land = "Bangladesh" ; "BD" ;
~Land = "Barbados" ; "BB" ;
~Land = "Belgien" ; "BE" ;
~Land = "Belize" ; "BZ" ;
~Land = "Benin" ; "BJ" ;
~Land = "Bermuda" ; "BM" ;
~Land = "Bhutan" ; "BT" ;
~Land = "Bolivia" ; "BO" ;
~Land = "Bosnien och Hercegovina" ; "BA" ;
~Land = "Botswana" ; "BW" ;
~Land = "Bouvetön" ; "BV" ;
~Land = "Brasilien" ; "BR" ;
~Land = "Brittiska Jungfruöarna" ; "VG" ;
~Land = "Brittiska territoriet i Indiska Oceanen" ; "IO" ;
~Land = "Brunei" ; "BN" ;
~Land = "Bulgarien" ; "BG" ;
~Land = "Burkina Faso" ; "BF" ;
~Land = "Burma" ; "MM" ;
~Land = "Burundi" ; "BI" ;
~Land = "Caymanöarna" ; "KY" ;
~Land = "Centralafrikanska republiken" ; "CF" ;
~Land = "Chile" ; "CL" ;
~Land = "Colombia" ; "CO" ;
~Land = "Cooköarna" ; "CK" ;
~Land = "Costa Rica" ; "CR" ;
~Land = "Cypern" ; "CY" ;
~Land = "Danmark" ; "DK" ;
~Land = "Demokratiska republiken Kongo" ; "CD" ;
~Land = "Djibouti" ; "DJ" ;
~Land = "Dominica" ; "DM" ;
~Land = "Dominikanska republiken" ; "DO" ;
~Land = "Ecuador" ; "EC" ;
~Land = "Egypten" ; "EG" ;
~Land = "Ekvatorialguinea" ; "GQ" ;
~Land = "El Salvador" ; "SV" ;
~Land = "Elfenbenskusten" ; "CI" ;
~Land = "Eritrea" ; "ER" ;
~Land = "Estland" ; "EE" ;
~Land = "Etiopien" ; "ET" ;
~Land = "Falklandsöarna" ; "FK" ;
~Land = "Fiji" ; "FJ" ;
~Land = "Filippinerna" ; "PH" ;
~Land = "Finland" ; "FI" ;
~Land = "France métropolitaine" ; "Frankrike, europeiska delen" ;~Land = "" ; "FX" ;
~Land = "Frankrike" ; "FR" ;
~Land = "Franska Guyana" ; "GF" ;
~Land = "Franska Polynesien" ; "PF" ;
~Land = "Franska södra territorierna" ; "TF" ;
~Land = "Färöarna" ; "FO" ;
~Land = "Förenade Arabemiraten" ; "AE" ;
~Land = "Gabon" ; "GA" ;
~Land = "Gambia" ; "GM" ;
~Land = "Georgien" ; "GE" ;
~Land = "Ghana" ; "GH" ;
~Land = "Gibraltar" ; "GI" ;
~Land = "Grekland" ; "GR" ;
~Land = "Grenada" ; "GD" ;
~Land = "Grönland" ; "GL" ;
~Land = "Guadeloupe" ; "GP" ;
~Land = "Guam" ; "GU" ;
~Land = "Guatemala" ; "GT" ;
~Land = "Guernsey" ; "GG" ;
~Land = "Guinea" ; "GN" ;
~Land = "Guinea Bissau" ; "GW" ;
~Land = "Guyana" ; "GY" ;
~Land = "Haiti" ; "HT" ;
~Land = "Heard- och McDonaldsöarna" ; "HM" ;
~Land = "Honduras" ; "HN" ;
~Land = "Hongkong" ; "HK" ;
~Land = "Indien" ; "IN" ;
~Land = "Indonesien" ; "ID" ;
~Land = "Irak" ; "IQ" ;
~Land = "Iran" ; "IR" ;
~Land = "Irland" ; "IE" ;
~Land = "Island" ; "IS" ;
~Land = "Isle of Man" ; "IM" ;
~Land = "Israel" ; "IL" ;
~Land = "Italien" ; "IT" ;
~Land = "Jamaica" ; "JM" ;
~Land = "Japan" ; "JP" ;
~Land = "Jemen" ; "YE" ;
~Land = "Jersey" ; "JE" ;
~Land = "Jordanien" ; "JO" ;
~Land = "Julön" ; "CX" ;
~Land = "Kambodja" ; "KH" ;
~Land = "Kamerun" ; "CM" ;
~Land = "Kanada" ; "CA" ;
~Land = "Kap Verde" ; "CV" ;
~Land = "Kazakstan" ; "KZ" ;
~Land = "Kenya" ; "KE" ;
~Land = "Kina" ; "CN" ;
~Land = "Kirgizistan" ; "KG" ;
~Land = "Kiribati" ; "KI" ;
~Land = "Kokosöarna" ; "CC" ;
~Land = "Komorerna" ; "KM" ;
~Land = "Kongo-Brazzaville" ; "CG" ;
~Land = "Kroatien" ; "HR" ;
~Land = "Kuba" ; "CU" ;
~Land = "Kuwait" ; "KW" ;
~Land = "Laos" ; "LA" ;
~Land = "Lesotho" ; "LS" ;
~Land = "Lettland" ; "LV" ;
~Land = "Libanon" ; "LB" ;
~Land = "Liberia" ; "LR" ;
~Land = "Libyen" ; "LY" ;
~Land = "Liechtenstein" ; "LI" ;
~Land = "Litauen" ; "LT" ;
~Land = "Luxemburg" ; "LU" ;
~Land = "Macau" ; "MO" ;
~Land = "Madagaskar" ; "MG" ;
~Land = "Makedonien" ; "MK" ;
~Land = "Malawi" ; "MW" ;
~Land = "Malaysia" ; "MY" ;
~Land = "Maldiverna" ; "MV" ;
~Land = "Mali" ; "ML" ;
~Land = "Malta" ; "MT" ;
~Land = "Marocko" ; "MA" ;
~Land = "Marshallöarna" ; "MH" ;
~Land = "Martinique" ; "MQ" ;
~Land = "Mauretanien" ; "MR" ;
~Land = "Mauritius" ; "MU" ;
~Land = "Mayotte" ; "YT" ;
~Land = "Mexiko" ; "MX" ;
~Land = "Mikronesiska federationen" ; "FM" ;
~Land = "Moldavien" ; "MD" ;
~Land = "Monaco" ; "MC" ;
~Land = "Mongoliet" ; "MN" ;
~Land = "Montenegro" ; "ME" ;
~Land = "Montserrat" ; "MS" ;
~Land = "Moçambique" ; "MZ" ;
~Land = "Namibia" ; "NA" ;
~Land = "Nauru" ; "NR" ;
~Land = "Nederländerna" ; "NL" ;
~Land = "Nederländska Antillerna" ; "AN" ;
~Land = "Nepal" ; "NP" ;
~Land = "Nicaragua" ; "NI" ;
~Land = "Niger" ; "NE" ;
~Land = "Nigeria" ; "NG" ;
~Land = "Niue" ; "NU" ;
~Land = "Nordkorea" ; "KP" ;
~Land = "Nordmarianerna" ; "MP" ;
~Land = "Norfolkön" ; "NF" ;
~Land = "Norge" ; "NO" ;
~Land = "Nya Kaledonien" ; "NC" ;
~Land = "Nya Zeeland" ; "NZ" ;
~Land = "Oman" ; "OM" ;
~Land = "Pakistan" ; "PK" ;
~Land = "Palau" ; "PW" ;
~Land = "Panama" ; "PA" ;
~Land = "Papua Nya Guinea" ; "PG" ;
~Land = "Paraguay" ; "PY" ;
~Land = "Peru" ; "PE" ;
~Land = "Pitcairnöarna" ; "PN" ;
~Land = "Polen" ; "PL" ;
~Land = "Portugal" ; "PT" ;
~Land = "Puerto Rico" ; "PR" ;
~Land = "Qatar" ; "QA" ;
~Land = "Réunion" ; "RE" ;
~Land = "Rumänien" ; "RO" ;
~Land = "Rwanda" ; "RW" ;
~Land = "Ryssland" ; "RU" ;
~Land = "Saint Kitts och Nevis" ; "KN" ;
~Land = "Saint Lucia" ; "LC" ;
~Land = "Saint Vincent och Grenadinerna" ; "VC" ;
~Land = "Saint-Barthélemy" ; "BL" ;
~Land = "Saint-Pierre och Miquelon" ; "PM" ;
~Land = "Salomonöarna" ; "SB" ;
~Land = "Samoa" ; "WS" ;
~Land = "San Marino" ; "SM" ;
~Land = "Sankta Helena" ; "SH" ;
~Land = "São Tomé och Príncipe" ; "ST" ;
~Land = "Saudiarabien" ; "SA" ;
~Land = "Schweiz" ; "CH" ;
~Land = "Senegal" ; "SN" ;
~Land = "Serbien" ; "RS" ;
~Land = "Seychellerna" ; "SC" ;
~Land = "Sierra Leone" ; "SL" ;
~Land = "Singapore" ; "SG" ;
~Land = "Slovakien" ; "SK" ;
~Land = "Slovenien" ; "SI" ;
~Land = "Somalia" ; "SO" ;
~Land = "Spanien" ; "ES" ;
~Land = "Sri Lanka" ; "LK" ;
~Land = "Storbritannien" ; "GB" ;
~Land = "Sudan" ; "SD" ;
~Land = "Surinam" ; "SR" ;
~Land = "Svalbard och Jan Mayen" ; "SJ" ;
~Land = "Swaziland" ; "SZ" ;
~Land = "Sydafrika" ; "ZA" ;
~Land = "Sydkorea" ; "KR" ;
~Land = "Syrien" ; "SY" ;
~Land = "Tadzjikistan" ; "TJ" ;
~Land = "Taiwan" ; "TW" ;
~Land = "Tanzania" ; "TZ" ;
~Land = "Tchad" ; "TD" ;
~Land = "Thailand" ; "TH" ;
~Land = "Tjeckien" ; "CZ" ;
~Land = "Togo" ; "TG" ;
~Land = "Tokelauöarna" ; "TK" ;
~Land = "Tonga" ; "TO" ;
~Land = "Trinidad och Tobago" ; "TT" ;
~Land = "Tunisien" ; "TN" ;
~Land = "Turkiet" ; "TR" ;
~Land = "Turkmenistan" ; "TM" ;
~Land = "Turks- och Caicosöarna" ; "TC" ;
~Land = "Tuvalu" ; "TV" ;
~Land = "Tyskland" ; "DE" ;
~Land = "Uganda" ; "UG" ;
~Land = "Ukraina" ; "UA" ;
~Land = "Ungern" ; "HU" ;
~Land = "Uruguay" ; "UY" ;
~Land = "USA" ; "US" ;
~Land = "USA:s yttre öar" ; "UM" ;
~Land = "Uzbekistan" ; "UZ" ;
~Land = "Vanuatu" ; "VU" ;
~Land = "Vatikanstaten" ; "VA" ;
~Land = "Venezuela" ; "VE" ;
~Land = "Vietnam" ; "VN" ;
~Land = "Vitryssland" ; "BY" ;
~Land = "Västsahara" ; "EH" ;
~Land = "Wallis- och Futunaöarna" ; "WF" ;
~Land = "Zambia" ; "ZM" ;
~Land = "Zimbabwe" ; "ZW" ;
~Land = "Åland" ; "AX" ;
~Land = "Österrike" ; "AT" ;
~Land = "Östtimor" ; "TP" ;
)
)
)

// ===================================
/*

    This function is published on FileMaker Custom Functions
    to check for updates and provide feedback and bug reports
    please visit http://www.fmfunctions.com/fid/379

    Prototype: CountriesNameSwedich_To_CountriesCodeName( Land )
    Function Author: Ronny (http://www.fmfunctions.com/mid/328)
    Last updated: 03 April 2015
    Version: 1

*/
// ===================================

 

 

 

 

 

 

 

Top Tags

Text Parsing  (33)
List  (32)
Date  (28)
XML  (27)
Format  (23)
Sql  (22)
Dev  (20)
Debug  (17)
Layout  (15)
Interface  (15)
Text  (14)
Variables  (13)
Filter  (12)
Layout Objects  (11)
Design  (10)
Array  (8)