Repository.Xfmea.AssignControlToXfmeaCause Method

Assigns a control to a cause. Returns a Boolean value; when true, indicates the control was assigned successfully.

Syntax
.Xfmea.AssignControlToXfmeaCause(ControlID, CauseID)

Parameters
Control ID
 * Required. The Control ID of the control that is to be assigned to the cause.

Cause ID
 * Required. The Cause ID of the cause to which the action is to be assigned.

Example
VBA|VB.NET MyRepository Repository MyRepository.ConnectToAccessRepository Controls cXfmeaControl MyRepository.Project.SetCurrentProject(1) Controls = MyRepository.Action.GetAllXfmeaControls Causes cCause Causes = MyRepository.Xfmea.GetAllXfmeaCauses(1) bOK Boolean bOK = MyRepository.Xfmea.AssignControlToXfmeaCause(Controls(0), Causes(0))