Repository.Action.GetAction: Difference between revisions
Jump to navigation
Jump to search
John Leavitt (talk | contribs) (Created page with '{{Template:APIClass|Repository Class|Repository}} {{Template:Repository.GetAction.Cmt}} == Syntax== *GetAction() {{APIPrefix|As}} cAction() == Usage Example =…') |
John Leavitt (talk | contribs) No edit summary |
||
Line 2: | Line 2: | ||
{{Template:Repository.GetAction.Cmt}} | {{Template:Repository.GetAction.Cmt}} | ||
== Syntax== | ==Syntax== | ||
*GetAction( | * GetAction({{APIPrefix|As}} [[cAction Class|cAction]]) | ||
Parameters | |||
Enter the Action ID to get desired action. | |||
== Usage Example == | == Usage Example == | ||
{{APIComment|'Declare a new repository connection object.}} | {{APIComment|'Declare a new repository connection object.}} | ||
Dim MyRepository As New Repository | Dim MyRepository As New Repository | ||
Line 14: | Line 17: | ||
Success = MyRepository.ConnectToRepository("RepositoryFileNamePath") | Success = MyRepository.ConnectToRepository("RepositoryFileNamePath") | ||
{{APIComment|'Get | {{APIComment|'Get the list of actions in the connected repository.}} | ||
Dim | Dim ListOfActions() As [[cAction Class|cAction]] | ||
GetAction= MyRepository.GetAction() | ListOfActions = MyRepository.GetAllActions() | ||
{{APIComment|'Get an Action.}} | |||
Dim GetAction() as cAction | |||
GetAction= MyRepository.GetAction(1) |
Revision as of 20:31, 21 April 2015
Version 10 Only - Returns action with the provided ID. Returns nothing if the action doesn't exist.
Syntax
- GetAction(As cAction)
Parameters
Enter the Action ID to get desired action.
Usage Example
'Declare a new repository connection object. Dim MyRepository As New Repository 'Connect to the Synthesis repository. Dim Success As Boolean = False Success = MyRepository.ConnectToRepository("RepositoryFileNamePath") 'Get the list of actions in the connected repository. Dim ListOfActions() As cAction ListOfActions = MyRepository.GetAllActions() 'Get an Action. Dim GetAction() as cAction GetAction= MyRepository.GetAction(1)