Repository.Crew.AddCrew: Difference between revisions
Jump to navigation
Jump to search
John Leavitt (talk | contribs) m (Protected "Repository.AddCrew" ([edit=sysop] (indefinite) [move=sysop] (indefinite)) [cascading]) |
Chris Kahn (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
{{Template:APIClass|Repository Class|Repository}} | {{Template:APIClass|Repository Class|Repository}} | ||
{{Template:Repository.AddCrew.Cmt}} {{Template:BooleanReturn.Cmt}} | |||
{{ | |||
{{ | |||
== | ==Syntax== | ||
*AddCrew( crew {{APIPrefix|As}} [[cCrew Class|cCrew]] ){{APIPrefix|As Boolean}} | |||
Parameters | |||
:''crew'': The [[cCrew Class|cCrew]] to add. | |||
== Usage Example == | == Usage Example == |
Revision as of 18:32, 27 February 2014
Saves the crew in the repository. Returns True if successful, otherwise returns False.
Syntax
- AddCrew( crew As cCrew )As Boolean
Parameters
- crew: The cCrew to add.
Usage Example
Declare a new repository connection class.
Private WithEvents MyRepository As New Repository
Connect to the Synthesis repository.
Dim Success As Boolean = False Success = MyRepository.ConnectToRepository("RepositoryFileNamePath")
Declare a new Crew.
Dim newCrew As New cCrew("NewCrew1")
Add the Crew to the repository.
Dim SuccessAddCrew As Boolean SuccessAddCrew = MyRepository.AddCrew(newCrew)