Repository.Variable.UpdateVariable

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

Syntax
.Variable.UpdateVariable(var)

Parameters
var
 * Required. The cVariable object to be updated.

Example
This example assumes that a variable with ID #1 exists in the first available project of a repository.

VBA MyRepository Repository MyRepository.ConnectToAccessRepository MyVariable cVariable MyRepository.Project.SetCurrentProject(1) MyVariable = MyRepository.Variable.GetVariable(1) MyVariable.Name = MyRepository.Variable.UpdateVariable(MyVariable)

VB.NET MyRepository Repository MyRepository.ConnectToAccessRepository MyVariable cVariable MyRepository.Project.SetCurrentProject(1) MyVariable = MyRepository.Variable.GetVariable(1) MyVariable.Name = MyRepository.Variable.UpdateVariable(MyVariable)