Repository.Crew.GetCrew: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
(Created page with '{{Template:APIClass|Repository Class|Repository}} {{Template:Repository.GetCrew.Cmt}} ==Syntax== * GetCrew( crew {{APIPrefix|ByVal}} ID {{APIPrefix|As Integer}}) {{APIPrefix|As}…')
 
No edit summary
Line 3: Line 3:


==Syntax==
==Syntax==
* GetCrew( crew {{APIPrefix|ByVal}} ID {{APIPrefix|As Integer}}) {{APIPrefix|As}} [[cCrew Class|cCrew]]
* GetCrew({{APIPrefix|As}} [[cCrew Class|cCrew]])


Parameters
Parameters
:''ID'': The ID to get.
 
Enter he Crew ID to get desired crew.


== Usage Example ==
== Usage Example ==
Line 21: Line 22:
    
    
  {{APIComment|'Get a Crew.}}
  {{APIComment|'Get a Crew.}}
   Dim GetCrew As Boolean = False
   Dim GetCrew() as cCrew
   GetCrew= MyRepository.GetCrew(1)
   GetCrew= MyRepository.GetCrew(1)

Revision as of 18:49, 21 April 2015


Version 10 Only - Returns crew with the provided ID. Returns nothing if the crew doesn't exist.

Syntax

Parameters

Enter he Crew ID to get desired crew.

Usage Example

 'Declare a new repository connection object. 
 Dim MyRepository As New Repository
 
 'Connect to the Synthesis repository. 
 Dim Success As Boolean = False
 Success = MyRepository.ConnectToRepository("RepositoryFileNamePath")
 
 'Get the list of crews in the connected repository. 
 Dim ListOfCrews() As cCrew
 ListOfCrews = MyRepository.GetAllCrews()
 
 'Get a Crew. 
 Dim GetCrew() as cCrew
 GetCrew= MyRepository.GetCrew(1)