CCorrectiveTask.GetCrewIDs Method: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
(Created page with '{{DISPLAYTITLE:cCorrectiveTask.GetCrewIDs Method}}{{Template:API}}{{Template:APIBreadcrumb|10|.cCorrectiveTask}} <onlyinclude>Gets an array containing…')
 
mNo edit summary
Line 1: Line 1:
{{DISPLAYTITLE:cCorrectiveTask.GetCrewIDs Method}}{{Template:API}}{{Template:APIBreadcrumb|10|.[[CCorrectiveTask_Class|cCorrectiveTask]]}}
{{DISPLAYTITLE:cCorrectiveTask.GetCrewIDs Method}}{{Template:API}}{{Template:APIBreadcrumb|.[[CCorrectiveTask_Class|cCorrectiveTask]]}}





Revision as of 21:14, 13 November 2015

APIWiki.png


Member of: SynthesisAPI.cCorrectiveTask


Gets an array containing the numeric IDs of the crews assigned to the task. (Alternatively, VBA.NET users can use the CrewIDs() property 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