CCorrectiveTask.SetCrewIDs Method

Assigns crews to the task. (Alternatively, VBA.NET users can use the  property in the class to get or set the crew IDs.)

Syntax
.SetCrewIDs(arr)

Parameters
arr
 * Required. Long. An array of the numeric IDs of the crews to be assigned to the task.

Example
This example assumes that the repository contains existing crews. VBA aTask cCorrectiveTask myarray(1) myarray(0) = 2 myarray(1) = 4 aTask.SetCrewIDs(myarray)