Repository.Variable.UpdateVariable

Saves all updates to a variable. Changes are reflected in the repository immediately upon refresh. Returns a Boolean value; when true, indicates a successful update.

Syntax
object.Variable.UpdateVariable(var)

where object is a variable that represents a Repository object.

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 MyURD cURD MyRepository.Project.SetCurrentProject(1) MyURD = MyRepository.URD.GetURD(1) MyURD.Name = MyRepository.URD.UpdateURD(MyURD)