Repository.Variable.UpdateVariable

Updates the properties of an existing variable in the current project. Changes are reflected in the repository immediately upon refresh. Returns a Boolean value; when true, indicates a successful update.

Syntax
.Variable.UpdateVariable(var)

Parameters
var
 * The cVariable object to be updated.

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

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

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