Repository.Action.UpdateAction

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

Syntax
.Action.UpdateAction(action)

Parameters
action
 * The cAction object to be updated.

Example
This example assumes that an action with ID#1 exists in the repository.

VBA MyRepository Repository MyAction cAction MyRepository.Project.SetCurrentProject(1) MyAction = MyRepository.Action.GetAction(1) MyAction.Name = MyRepository.Action.UpdateAction(MyAction)

VB.NET MyRepository Repository MyAction cAction MyRepository.Project.SetCurrentProject(1) MyAction = MyRepository.Action.GetAction(1) MyAction.Name = MyRepository.Action.UpdateAction(MyAction)