Repository.Xfmea.GetXfmeaCauseActions Method: Difference between revisions
		
		
		
		Jump to navigation
		Jump to search
		
 Created page with '{{Template:API}}{{Template:APIBreadcrumb|.Repository}}   <onlyinclude>Returns an array '''cActions'''objects for all actions associated to…'  | 
				No edit summary  | 
				||
| (2 intermediate revisions by the same user not shown) | |||
| Line 2: | Line 2: | ||
<onlyinclude>Returns an array '''[[  | <onlyinclude>Returns an array '''[[CAction_Class|cActions]]''' objects for all actions associated to the specified Cause ID.</onlyinclude>     | ||
== Syntax ==  | == Syntax ==  | ||
| Line 25: | Line 25: | ||
  {{APIComment|'Obtain all actions associated with the first item in the Causes array. For VB.NET, the dictionary method could also be used.}}  |   {{APIComment|'Obtain all actions associated with the first item in the Causes array. For VB.NET, the dictionary method could also be used.}}  | ||
    {{APIPrefix|Dim}} Actions() {{APIPrefix|As}} cAction  |     {{APIPrefix|Dim}} Actions() {{APIPrefix|As}} cAction  | ||
    Actions = MyRepository.Xfmea.GetXfmeaCauseActions(Causes(0))  | |||
Latest revision as of 18:48, 2 March 2018
![]()  | 
Member of:  SynthesisAPI.Repository   
Returns an array cActions objects for all actions associated to the specified Cause ID.  
Syntax
.Xfmea.GetXfmeaCauseActions(CauseID)
Parameters
Cause ID
- Required. The Cause ID used to obtain all associated actions.
 
Example
VBA|VB.NET 'Declare a new Repository object and connect to a repository. Dim MyRepository As New Repository MyRepository.ConnectToAccessRepository("C:\RSRepository1.rsr18") 'Get a list of causes for failure #1 from project #1. Dim Causes() As cCause Set Causes = MyRepository.Xfmea.GetAllXfmeaCauses(1) 'Obtain all actions associated with the first item in the Causes array. For VB.NET, the dictionary method could also be used. Dim Actions() As cAction Actions = MyRepository.Xfmea.GetXfmeaCauseActions(Causes(0))
