CScheduledTask.OnCondSetTeams Method

Sets the teams required for the 'On condition' 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
.OnCondSetTeams( 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 cScheduledTask aTask = MyRespository.Task.GetScheduledTask(2) aTask.TaskClass = TaskClassEnum_OnCondition Teams(1) TeamInfo Teams(0) = Team1 Teams(1) = Team2 Teams TeamInfo Task.OnCondSetTeams(Teams)