Repository.Crew.GetCrew

Gets the crew with the designated ID number and returns it as a cCrew object. Returns nothing if the crew does not exist or is not in the current project.

Syntax
.Crew.GetCrew(ID)

Parameters
ID
 * Integer. The ID number of the crew to retrieve.

Example
This example assumes that a crew with ID#1 exists in a repository. VBA MyRepository Repository MyCrew cCrew MyRepository.Project.SetCurrentProject(1) MyCrew = MyRepository.Crew.GetCrew(1) CrewName String CrewID Integer CrewName = MyCrew.Name CrewID = MyCrew.ID MsgBox ( & CrewName &  & CrewID)

VB.NET MyRepository Repository MyCrew cCrew MyRepository.Project.SetCurrentProject(1) MyCrew = MyRepository.Crew.GetCrew(1) CrewName String CrewID Integer CrewName = MyCrew.Name CrewID = MyCrew.ID MsgBox ( & CrewName &  & CrewID)