ISProfile.GetCountryCodeByName

Description

This function returns the country code by the country name.

Syntax

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

Return Value

string

Returns the country code by the country name.

Example

Display the code of the specified country.

Dim aCountryCode

aCountryCode = Profile.GetCountryCodeByName("New Zealand")
Profile.MsgBox("The country code of New Zealand is " & aCountryCode)
Note:

Version information

Added in v7.8.0