Repository.Variable.UpdateVariable

Applies any changes made to an existing variable resource. 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 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)