TeamInfo.SetCrewIDs Method

Sets the IDs of the crews included in the team.

Remarks: Designed for VB6/VBA users, .NET users should use CrewIDs property instead.

Syntax
.SetCrewIDs( arr)

Parameters
arr
 * Required as integer. An array of the crew IDs.

Example
VBA MyRepository Repository MyRepository.ConnectToAccessRepository 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) MyRepository.Task.UpdateCorrectiveTask(Task)