CCorrectiveTask.SetTeams Method

Sets the teams required for the task.

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

Syntax
.SetTeams( arr)

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

Example
VBA MyRepository Repository MyRepository.ConnectToAccessRepository MyRepository.Project.SetCurrentProject(1) CrewIDs Long CrewIDs(2) CrewIDs(0) = 1 CrewIDs(1) = 4 CrewIDs(2) = 5 Team1 TeamInfo Team1.SetCrewIDS(CrewIDs) CrewIDs(3) CrewIDs(0) = 3 CrewIDs(1) = 7 CrewIDs(2) = 8 CrewIDs(3) = 9 Team2 TeamInfo Team2.SetCrewIDS(CrewIDs) aTask cCorrectiveTask aTask = MyRespository.Task.GetCorrectiveTask(2) Teams(1) TeamInfo Teams(0) = Team1 Teams(1) = Team2 Task.SetTeams(Teams)