@argumentum Here is a simple example for you
; NOTE: Use the latest BETA version of AutoIt
#include <MsgBoxConstants.au3>
Global $mCountryCodes[] ; Declare the map which will contain the country codes
; Add some country codes to the database
$mCountryCodes["1"] = "US"
$mCountryCodes["91"] = "India"
$mCountryCodes["81"] = "Japan"
Global $sInput ; This will store the input
While True ; Infinite Loop!
$sInput = InputBox("Country Code Directory", "Enter the country code and I will tell you the country :)")
If @error Then Exit ; If the user closes the InputBox...
If MapExists($mCountryCodes, $sInput) Then ; Check if the country code exists in the database
MsgBox($MB_ICONINFORMATION, "Country of the code", $sInput & " is used to call " & $mCountryCodes[$sInput])
Else
MsgBox($MB_ICONERROR, "Error", "Country code not in database :(")
EndIf
WEnd
(Hint: You can use my Experimental Maps UDF to convert @argumentum's array to a map!)
(Big Hint: I have compiled all the necessary bits of code and made an Country Code Directory script! Just click "Download ZIP" to download all the files you need!)
I think it implies that you have no idea about what I am talking about and are very sceptical about it (or something similar like that).