TeamInfo.GetCrewIDs Method

From ReliaWiki
Revision as of 16:13, 13 March 2019 by David J. Groebel (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
APIWiki.png


Member of: SynthesisAPI.TeamInfo


Returns an array of the IDs of the crews included in the team.


Remarks: Designed for VB6/VBA users, .NET users should use CrewIDs property instead.

Syntax

.GetCrewIDs(ByRef arr())

Parameters

arr()

Required as integer. An array of the crew IDs.

Example

VBA
 ... 

 'Add code to get an existing team. 
  Dim aTeam As TeamInfo

 ... 

 'Get the IDs of the crews assigned to the team. 
  Dim myarray() As integer
  Call aTeam.GetCrewIDs(myarray)

 'Sample output. 
  Dim i As Integer
  Dim upper As Integer
  Dim lower As Integer

  upper = UBound(myarray)

  For i = 0 To upper
    MsgBox "Crew ID = " & myarray(i)
  Next i