The project need to be done in standard BASIC
It is to format phones numbers, we have the phone and the country, but sometime the country code is missing, and also the front 0 should sometime be removed, etc...
You must also know how much digit have each country to verify the phone number
example : france 0606606707 should be +33 606606707
example : france 606606707 should be +33 606606707
example : france 33606606707 should be +33 606606707
example : france 34606606707 should return an error
example : france 06606707 should return an error
The lotusscript will be a function : VerifyPhoneNumber( Country as String , Phone as String ) as string
it return empty string in case or error , or the phone number corrected
the function will have a const with all 100 country informations like this
const CountryInfos = |FRANCE#+33#9
USA#+1#10
CANADA#+1#10
|
you must do a TEST function wich will take the listing test below and process all lines
List of country wich must be verified : , Albania , Algeria , Andorra , Antigua and Barbuda , Argentina , Australia , Austria , Bahamas , Bahrain , Barbados , Belgium , Belize , Bermuda , Bosnia and Herzegovina , Botswana , Brazil , Bulgaria , Canada , Cayman Islands , Chile , China , Colombia , Costa Rica , Croatia , Cyprus , Czech Republic , Denmark , Dominica , Dominican Republic , Ecuador , El Salvador , Estonia , Faroe Islands , Fiji , Finland , France , French Guiana , French Polynesia , Germany , Gibraltar , Greece , Greenland , Grenada , Guadeloupe , Guatemala , Honduras , Hong Kong , Hungary , Iceland , India , Indonesia , Ireland , Israel , Italy , Jamaica , Japan , Jordan , Kenya , Kuwait , Latvia , Lesotho , Liechtenstein , Lithuania , Luxembourg , Malawi , Malaysia , Malta , Martinique , Mexico , Morocco , Mozambique , Netherlands , New Caledonia , New Zealand , Norway , Oman , Palau , Panama , Peru , Philippines , Poland , Portugal , Qatar , Reunion , Romania , Russia , Saint Kitts and Nevis Anguilla , San Marino , Saudi Arabia , Seychelles , Singapore , Slovakia , Slovenia , South Africa , South Korea , Spain , St. Lucia , Sweden , Switzerland , Taiwan , Thailand , Trinidad and Tobago , Turkey , Turks and Caicos Islands , United Arab Emirates , United Kingdom , United States , Uruguay , Venezuela , Vietnam