Repository.Crew.GetAllCrews

Gets a list of crews associated with a project (does not include global or reference crews). Returns a cCrew object array that contains all the crews in that project.

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 NumberofElements Integer NumberofElements = UBound(ListofCrews) - LBound(ListofCrews) + 1 MsgBox (NumberofElements)