CountryStats Total Property

This property returns the total number of hits for a particular country.

Syntax:

 totalHits = chStatsObj.Total [countryCode]

countryCode: This must contain a valid two-letter country code for the country you wish to obtain the total hit count for.

Returns:

Returns the total number of hits for the specified country code.

Example:

<%

set chStatsObj = Server.CreateObject("cyScape.CountryStats ")

totalHits = chStatsObj.Total("DE")

response.write "Total hits from Germany: " & totalHits %>

Tip: This property is the default property for the object. Therefore you can call this property by simply referring to the object and passing in the country code in parentheses if you prefer. For example: chStatsObj("DE") instead of chStatsObj.Total("DE").

Tip: See the ch_statsByCountry.asp sample for more information.

Note: Use of this property requires the Enterprise Edition of CountryHawk.

Note: This property is read-only.

See Also:

CountryHawk Object Properties and Methods

RegionStats Object Properties and Methods