TeamInfo.GetCrewIDs Method: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
(Created page with '{{DISPLAYTITLE:TeamInfo.GetCrewIDs Method}}{{Template:API}}{{Template:APIBreadcrumb|.TeamInfo}} <onlyinclude>Returns an array of the IDs of the crews include…')
 
No edit summary
Line 16: Line 16:
== Example ==
== Example ==
  '''VBA'''
  '''VBA'''
{{APIComment|...}}
   
   
  {{APIComment|'Add code to get an existing team.}}
  {{APIComment|'Add code to get an existing team.}}
   {{APIPrefix|Dim}} aTeam {{APIPrefix|As}} TeamInfo
   {{APIPrefix|Dim}} aTeam {{APIPrefix|As}} TeamInfo
{{APIComment|...}}
   
   
  {{APIComment|'Get the IDs of the crews assigned to the team.}}
  {{APIComment|'Get the IDs of the crews assigned to the team.}}

Revision as of 20:35, 12 March 2019

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

 lower = LBound(myarray)
 upper = UBound(myarray)

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