CScheduledTask.GetCrewIDs Method: Difference between revisions
Jump to navigation
Jump to search
Kate Racaza (talk | contribs) No edit summary |
m (Change VB.NET to .NET.) |
||
(6 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:cScheduledTask.GetCrewIDs Method}}{{Template:API}}{{Template:APIBreadcrumb | {{DISPLAYTITLE:cScheduledTask.GetCrewIDs Method}}{{Template:API}}{{Template:APIBreadcrumb|.[[CScheduledTask_Class|cScheduledTask]]}} | ||
<onlyinclude> | <onlyinclude>Returns an array containing the numeric IDs of the crews assigned to the task. '''Long'''.</onlyinclude> | ||
'''Remarks''': Alternatively, .NET users can use the <code>CrewIDs()</code> property in the class to get or set the crew IDs. | |||
== Syntax == | == Syntax == |
Latest revision as of 21:23, 17 August 2017
Member of: SynthesisAPI.cScheduledTask
Returns an array containing the numeric IDs of the crews assigned to the task. Long.
Remarks: Alternatively, .NET users can use the CrewIDs()
property in the class to get or set the crew IDs.
Syntax
.GetCrewIDs(arr())
Parameters
arr()
- Required. Long. An array of the numeric IDs of the crews assigned to the task.
Example
VBA ... 'Add code to get an existing scheduled task. Dim aTask As cScheduledTask ... 'Get the IDs of the crews assigned to the task. Dim myarray() As Long Call aTask.GetCrewIDs(myarray) 'Sample output. Dim i As Integer Dim upper As Integer Dim lower As Integer lower = LBound(myarray) upper = UBound(myarray) For i = lower To upper MsgBox (myarray(i)) Next i