Repository.Crew.UpdateCrew

Applies any changes made to an existing crew. Returns a Boolean value; when true, indicates a successful save.

Syntax
.Crew.UpdateCrew(crew)

Parameters
crew
 * Required. The cCrew object to be updated.

Example
This example assumes that a crew with ID #1 exists in the first available project of a repository.

VBA MyRepository Repository MyCrew cCrew MyRepository.Project.SetCurrentProject(1) MyCrew = MyRepository.Crew.GetCrew(1) MyCrew.Name = MyRepository.Crew.UpdateCrew(MyCrew)

VB.NET MyRepository Repository MyCrew cCrew MyRepository.Project.SetCurrentProject(1) MyCrew = MyRepository.Crew.GetCrew(1) MyCrew.Name = MyRepository.Crew.UpdateCrew(MyCrew)