CCorrectiveTask.GetCrewIDs Method: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
 
(2 intermediate revisions by one other user not shown)
Line 2: Line 2:




<onlyinclude>Gets an array containing the numeric IDs of the crews assigned to the task. (Alternatively, VBA.NET users can use the <code>CrewIDs()</code> property in the class to get or set the crew IDs.)</onlyinclude>
<onlyinclude>Returns an array containing the numeric IDs of the crews assigned to the task.</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 23:59, 9 August 2018

APIWiki.png


Member of: SynthesisAPI.cCorrectiveTask


Returns an array containing the numeric IDs of the crews assigned to the task.


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 corrective task. 
 Dim aTask As cCorrectiveTask
 ... 

 '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