CScheduledTask.OnCondGetTeams Method

Returns an array 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
.OnCondGetTeams( 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) aTask cScheduledTask aTask = MyRespository.Task.GetScheduledTask(2) aTask.TaskClass = TaskClassEnum_OnCondition Teams TeamInfo aTask.OnCondGetTeams(Teams)