Repository.Crew.GetAllCrews

Gets a list of all existing crews in the current project. Returns a cCrew object array that contains the crew names, ID numbers and other information.

Syntax
.Crew.GetAllCrews

Example
This example assumes that crews exist in the first available project of a repository.

VBA|VB.NET MyRepository Repository ListofCrews cCrew MyRepository.Project.SetCurrentProject (1) ListofCrews = MyRepository.Crew.GetAllCrews CrewName String CrewID Integer CrewName = ListofCrews(0).Name CrewID = ListofCrews(0).ID MsgBox ( & CrewName &  & CrewID)