Repository.Crew.UpdateCrew

Updates the properties of a given crew resource in the current project. Returns a Boolean value; when true, indicates a successful save.

Syntax
.Crew.UpdateCrew(crew)

Parameters
crew
 * Required. The cCrew object that represents the crew resource 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 MyRepository.ConnectToAccessRepository MyCrew cCrew MyRepository.Project.SetCurrentProject(1) MyCrew = MyRepository.Crew.GetCrew(1) MyCrew.Name = MyRepository.Crew.UpdateCrew(MyCrew)

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