This function returns the collection of states with the specified country code.
object.LoadStatesList(aISOLong)
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISProfile interface |
|
aISOLong |
In, Required | string |
The long country code |
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)
In Profile Client v8 on User Interface States List cannot be found.