ITrkSession.OpenExistingSession (method)

method OpenExistingSession
Syntax: VARIANT_BOOL*pVal = object.OpenExistingSession ( SessionID )
Parameters:
SessionID As String -
Description:
The OpenExistingSession method will open a session by the given name. A return value of TRUE indicates the session was opened successfully.

Example:

Dim oTrkItemAgent As Object
Dim oTrkSession As Object
Dim oTrkItems As Object
Set oTrkItemAgent = CreateObject("Tracker.TrkItemAgent")
Set oTrkSession = CreateObject("Tracker.TrkSession")
oTrkSession.AddProject ProjectName, "ADMINISTRATOR", ""
ret = oTrkSession.OpenExistingSession("AGDB-EDRT")