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
object.Crew.GetCrew(ID)

where object is a variable that represents a Repository object.

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)