Repository.Control.AddXfmeaControl

Saves a new cXfmeaControl object to the current project. Returns a Boolean value; when true, indicates a successful save.

Syntax
.Control.AddXfmeaControl(control)

Parameters
control
 * The cXfmeaControl object to be added. (Required)

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 NewControl cXfmeaControl NewControl.Name = MyRepository.Project.SetCurrentProject(1) MyRepository.Control.AddXfmeaControl(NewControl)

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