Repository.Crew.UpdateCrew

Updates the properties of an existing crew in the current project. Changes are reflected in the repository immediately upon refresh. Returns a Boolean value; when true, indicates a successful update.

Syntax
.Crew.UpdateCrew(crew)

Parameters
crew
 * The cCrew object to be updated.

Example
This example assumes that a crew with ID#1 exists in the 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)