ISProfile.LoadStatesList

Description

This function returns the collection of states with the specified country code.

Syntax

object.LoadStatesList(aISOLong)

Part Attribute Type Description
object Required
The object always implements the ISProfile interface
aISOLong In, Required
string
The long country code

Return Value

ISStates

Returns the collection of states with the specified country code.

Example

Display the number of the states and their names.

Dim aMessage
Dim aStatesList
Dim aState
Dim i
Dim aCountryISOLong
 
aCountryISOLong = "AUS" 

set aStatesList = Profile.LoadStatesList(aCountryISOLong)
  
aMessage = "The country with the code '" & aCountryISOLong & "' has " &_
   aStatesList.Count & " states "   
  
for i = 0 to aStatesList.Count - 1
  set aState = aStatesList.Item (i)
  aMessage = aMessage & vbNewLine & (i + 1) & ") " & aState.Description 
next
 
Profile.MsgBox(aMessage)  
Note:

In Profile Client v8 on User Interface States List cannot be found.

Version information

Added in v7.8.0