Repository.Control.UpdateXfmeaControl

Updates the properties of a given control resource in the current project. Returns a Boolean value; when true, indicates a successful update.

Syntax
.Control.UpdateXfmeaControl(control)

Parameters
control
 * Required. The cXfmeaControl object that represents the control 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)