Repository.Control.AddXfmeaControl

Adds a new Xfmea control to the current project. Returns a Boolean value; when true, indicates a successful save.

Syntax
.Control.AddXfmeaControl(control)

Parameters
control
 * Required. The cXfmeaControl object that represents the control to be added.

Example
This example creates a new Xfmea control resource, and then saves it in the first available project in a Synthesis repository. VBA MyRepository Repository MyRepository.ConnectToAccessRepository NewControl cXfmeaControl NewControl.ControlDescription = MyRepository.Project.SetCurrentProject(1) MyRepository.Control.AddXfmeaControl(NewControl)

VB.NET MyRepository Repository MyRepository.ConnectToAccessRepository NewControl cXfmeaControl MyRepository.Project.SetCurrentProject(1) MyRepository.Control.AddXfmeaControl(NewControl)