cScheduledTask.GetTeams Method

From ReliaWiki
Revision as of 18:27, 14 March 2019 by David J. Groebel (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
APIWiki.png


Member of: SynthesisAPI.cScheduledTask


Returns an array teams required for the task.


Remarks: Designed for VB6/VBA users, but can also be used in .NET. Alternatively, .NET users can use the Teams() property in the class to get or set the teams.

Syntax

.GetTeams(ByRef arr())

Parameters

arr()

Required as TeamInfo. An array of the team IDs for the task.

Example

VBA

 'Declare a new Repository object and connect to a repository. 
  Dim MyRepository As New Repository
  MyRepository.ConnectToAccessRepository("C:\RSRepository1.rsr19")
  MyRepository.Project.SetCurrentProject(1)

 'Get a particular task with ID of 2 from repository. 
  Dim aTask As cCorrectiveTask
  Set aTask = MyRespository.Task.GetScheduledTask(2)

 'Create instance of TeamInfo. 
  Dim Teams() As TeamInfo
  Call aTask.GetTeams(Teams)