ISRegion.ID

Description

ID of the region.

Syntax

object.ID

Part Attribute Type Description
object Required
The object always implements the ISRegion interface
Restriction: This property is readonly.

Return Value

int

Example

Display some information about the region, including its ID.

Dim aPostCode
Dim aRegions, aRegion
Dim aMessage
Dim i   

set aPostCode = Profile.LookupPostCode("", "Mara", "CAN", "BC")
if aPostCode is nothing then
  exit sub
end if
set aRegions = aPostCode.Regions
  
aMessage =_
  "Country Code: " & VbTab & aPostCode.CountryCode & vbNewLine &_
  "Regions Count: " & VbTab & aRegions.Count
for i = 0 to aRegions.Count - 1
  set aRegion = aPostCode.Regions.Item(i)
  aMessage = aMessage & vbNewLine &_
    "------------------ Region " & (i + 1) & " ---------------- " & vbNewLine &_  
    "Code: " & VbTab & VbTab & aRegion.Code & VbTab & vbNewLine &_   
    "Name: " & VbTab & VbTab & aRegion.Name & vbNewLine &_
    "ID: " & VbTab & VbTab & aRegion.ID & vbNewLine 
next

Profile.MsgBox (aMessage)  
Note:

In Profile Client v8 on User Interface Region ID cannot be found, but Region can be found in Maintain > Post Codes > Regions.

Version information

Added in v7.8.0