Repository.Variable.UpdateVariable

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

Syntax
.Variable.UpdateVariable(var)

Parameters
var
 * Required. The cVariable object that represents the variable resource 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)