Repository.Control.UpdateXfmeaControl

Sends any changes made to an existing control resource to the Synthesis repository. Returns a Boolean value; when true, indicates a successful save.

Syntax
.Control.UpdateXfmeaControl(control)

Parameters
control
 * Required. The cXfmeaControl object to be updated.

Example
This example assumes that an Xfmea control with ID #1 exists in the first available project in a repository.

VBA MyRepository Repository MyRepository.ConnectToAccessRepository MyControl cXfmeaControl MyRepository.Project.SetCurrentProject(1) MyControl = MyRepository.Control.GetXfmeaControl(1) MyControl.Name = MyRepository.Control.UpdateXfmeaControl(MyControl)

VB.NET MyRepository Repository MyRepository.ConnectToAccessRepository MyControl cXfmeaControl MyRepository.Project.SetCurrentProject(1) MyControl = MyRepository.Control.GetXfmeaControl(1) MyControl.Name = MyRepository.Control.UpdateXfmeaControl(MyControl)