Repository.Action.GetAction

Gets a cAction object that represents a given action resource in the current project. Returns nothing if the action does not exist or is not in the current project.

Syntax
Action.GetAction(ID)

Parameters
ID
 * Required. Integer. The ID number of the action to retrieve.

Example
This example assumes that an action with ID #1 exists in the first project of a Synthesis repository. VBA MyRepository Repository MyRepository.ConnectToAccessRepository MyAction cAction MyRepository.Project.SetCurrentProject(1) MyAction = MyRepository.Action.GetAction(1) ActionName String ActionID Integer ActionName = MyAction.ActionDescription ActionID = MyAction.ID  MsgBox ( & ActionID &  & ActionName)

VB.NET MyRepository Repository MyRepository.ConnectToAccessRepository MyAction cAction MyRepository.Project.SetCurrentProject(1) MyAction = MyRepository.Action.GetAction(1) ActionName String ActionID Integer ActionName = MyAction.ActionDescription ActionID = MyAction.ID  MsgBox ( & ActionID &  & ActionName)