CScheduledTask.SetCrewIDs Method

Assigns crews to the task.

Remarks: Alternatively, .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 cScheduledTask myarray(1) myarray(0) = 2 myarray(1) = 4 aTask.SetCrewIDs(myarray)