The CountryCode property returns the two-letter country code for the country associated with the IP address of the currently initialized CountryHawk object. The return value is always in uppercase.
Syntax:
countryCodeAsStr = chObj.CountryCode
Returns:
String representing the two-letter country code for the IP address that chObj is initialized to. For example, "US" for United States and "CA" for Canada. These two-letter country codes are defined in your countrynames.properties file.
Example:
set chObj = Server.CreateObject("cyScape.countryObj")
response.write "Your country code is: " & chObj.CountryCode
chObj.Initialize "207.46.230.220"
response.write "Country code for 207.46.230.220 is: " & chObj.CountryCode
See the ch_basics.asp sample for more information.
Note: This property is read-only.
See Also:
About the Properties and Methods Guide
RegionNameFromCountryCode Method
About the sample scripts