Repository.Variable.AddVariable

Saves a new cVariable object to the Synthesis repository. Returns a Boolean value; when true, indicates that the variable now exists in the repository.

Syntax
object.Variable.AddVariable(var)

where object is a variable that represents a Repository object.

Example
VBA MyRepository Repository newVariable cVariable NewVariable.Name = MyRepository.Project.SetCurrentProject(1) MyRepository.Variable.AddVariable(NewVariable)

VB.NET MyRepository Repository newVariable cVariable MyRepository.Project.SetCurrentProject(1) MyRepository.Variable.AddVariable(newVariable)