Repository.Crew.GetCrew: Difference between revisions
Jump to navigation
Jump to search
John Leavitt (talk | contribs) (Created page with '{{Template:APIClass|Repository Class|Repository}} {{Template:Repository.GetCrew.Cmt}} ==Syntax== * GetCrew( crew {{APIPrefix|ByVal}} ID {{APIPrefix|As Integer}}) {{APIPrefix|As}…') |
John Leavitt (talk | contribs) No edit summary |
||
Line 3: | Line 3: | ||
==Syntax== | ==Syntax== | ||
* GetCrew( | * GetCrew({{APIPrefix|As}} [[cCrew Class|cCrew]]) | ||
Parameters | Parameters | ||
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 | 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
- GetCrew(As cCrew)
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)