ITrkItemAgent.GetAssociatedProject (method)

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

Index within the region list to return the associated project
Description:
The GetAssociatedProject method will return the project where the given region resides.

Example:
Dim oTrkItemAgent As Object
Dim oTrkItems As Object
Dim oTrkItem As Object

Set oTrkItemAgent = CreateObject("Tracker.TrkItemAgent")
oTrkItemAgent.AddRegion "A_TP1", -3, -3, "PROJ1"
oTrkItemAgent.AddRegion "C_TP1", -1, -1, "PROJ2"
MsgBox oTrkItemAgent.GetAssociatedProject(1) // PROJ1
...
...
...