Repository.Action.UpdateAction

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

Syntax
.Action.UpdateAction(action)

Parameters
action
 * Required. The cAction object that represents the action resource to be updated.

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

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

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