Repository.Crew.UpdateCrew

Saves all updates to a crew. Changes are reflected in the repository immediately upon refresh. Returns a Boolean value; when true, indicates a successful update.

Syntax
object.Crew.UpdateCrew(crew)

where object is a variable that represents a Repository object.

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)