<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.reliawiki.com/index.php?action=history&amp;feed=atom&amp;title=Repository.Xfmea.AssignControlToXfmeaCause_Method</id>
	<title>Repository.Xfmea.AssignControlToXfmeaCause Method - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.reliawiki.com/index.php?action=history&amp;feed=atom&amp;title=Repository.Xfmea.AssignControlToXfmeaCause_Method"/>
	<link rel="alternate" type="text/html" href="https://www.reliawiki.com/index.php?title=Repository.Xfmea.AssignControlToXfmeaCause_Method&amp;action=history"/>
	<updated>2026-05-09T04:35:23Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://www.reliawiki.com/index.php?title=Repository.Xfmea.AssignControlToXfmeaCause_Method&amp;diff=65304&amp;oldid=prev</id>
		<title>David J. Groebel: Created page with &#039;{{Template:API}}{{Template:APIBreadcrumb|.Repository}}   &lt;onlyinclude&gt;Assigns a control to a cause. Returns a &#039;&#039;&#039;Boolean&#039;&#039;&#039; value; when true, indicates the c…&#039;</title>
		<link rel="alternate" type="text/html" href="https://www.reliawiki.com/index.php?title=Repository.Xfmea.AssignControlToXfmeaCause_Method&amp;diff=65304&amp;oldid=prev"/>
		<updated>2018-03-02T18:12:05Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;{{Template:API}}{{Template:APIBreadcrumb|.&lt;a href=&quot;/index.php/Repository_Class&quot; title=&quot;Repository Class&quot;&gt;Repository&lt;/a&gt;}}   &amp;lt;onlyinclude&amp;gt;Assigns a control to a cause. Returns a &amp;#039;&amp;#039;&amp;#039;Boolean&amp;#039;&amp;#039;&amp;#039; value; when true, indicates the c…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Template:API}}{{Template:APIBreadcrumb|.[[Repository Class|Repository]]}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;onlyinclude&amp;gt;Assigns a control to a cause. Returns a &amp;#039;&amp;#039;&amp;#039;Boolean&amp;#039;&amp;#039;&amp;#039; value; when true, indicates the control was assigned successfully.&amp;lt;/onlyinclude&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
 &amp;#039;&amp;#039;&amp;#039;.Xfmea.AssignControlToXfmeaCause&amp;#039;&amp;#039;&amp;#039;(&amp;#039;&amp;#039;ControlID&amp;#039;&amp;#039;, &amp;#039;&amp;#039;CauseID&amp;#039;&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&amp;#039;&amp;#039;Control ID&amp;#039;&amp;#039;&lt;br /&gt;
:Required. The Control ID of the control that is to be assigned to the cause.&lt;br /&gt;
&amp;#039;&amp;#039;Cause ID&amp;#039;&amp;#039;&lt;br /&gt;
:Required. The Cause ID of the cause to which the action is to be assigned.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
 &amp;#039;&amp;#039;&amp;#039;VBA|VB.NET&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
 &lt;br /&gt;
 {{APIComment|&amp;#039;Declare a new Repository object and connect to a repository.}}&lt;br /&gt;
   {{APIPrefix|Dim}} MyRepository {{APIPrefix|As New}} Repository&lt;br /&gt;
   MyRepository.ConnectToAccessRepository({{APIString|&amp;quot;C:\RSRepository1.rsr18&amp;quot;}})&lt;br /&gt;
   &lt;br /&gt;
 {{APIComment|&amp;#039;Get a list of controls from project #1.}}&lt;br /&gt;
   {{APIPrefix|Dim}} Controls() {{APIPrefix|As}} cXfmeaControl&lt;br /&gt;
   MyRepository.Project.SetCurrentProject(1)&lt;br /&gt;
   {{APIPrefix|Set}} Controls = MyRepository.Action.GetAllXfmeaControls()&lt;br /&gt;
   &lt;br /&gt;
 {{APIComment|&amp;#039;Get a list of causes for failure #1 from project #1.}}&lt;br /&gt;
   {{APIPrefix|Dim}} Causes() {{APIPrefix|As}} cCause&lt;br /&gt;
   {{APIPrefix|Set}} Causes = MyRepository.Xfmea.GetAllXfmeaCauses(1)&lt;br /&gt;
 &lt;br /&gt;
 {{APIComment|&amp;#039;Assign the first item in the Controls array to be assigned to the first item in the Causes array. For VB.NET, dictionaries could also be used.}}&lt;br /&gt;
   {{APIPrefix|Dim}} bOK {{APIPrefix|As}} Boolean&lt;br /&gt;
   bOK = MyRepository.Xfmea.AssignControlToXfmeaCause(Controls(0), Causes(0))&lt;/div&gt;</summary>
		<author><name>David J. Groebel</name></author>
	</entry>
</feed>