ITrkItemAgent.GetRegion (method)

method GetRegion
Syntax: String = object.GetRegion ( nIndex )
nIndex As Long -

Index within the region list to return the region.
The GetRegion method will return the region name at the specified index within the region list specified by the criteria.


Dim oTrkItemAgent As Object
Dim oTrkItems As Object
Dim oTrkItem As Object
Set oTrkItemAgent = CreateObject("Tracker.TrkItemAgent")
oTrkItemAgent.AddRegion "A_TP1", -3, -3, "PA1"
oTrkItemAgent.AddRegion "B_TP1", -3, -3, "PA1"
oTrkItemAgent.Execute oTrkItems
MsgBox oTrkItemAgent.GetRegion(1) // A_TP1