Repository.Action.GetAction

Returns a cAction object, which represents an action resource. 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)