This function returns the country code by the country name.
object.GetCountryCodeByName(CountryName)
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISProfile interface |
|
CountryName |
In, Required | string |
The name of the country |
string
Display the code of the specified country.
Dim aCountryCode
aCountryCode = Profile.GetCountryCodeByName("New Zealand")
Profile.MsgBox("The country code of New Zealand is " & aCountryCode)