Repository.Variable.GetAllVariables

Gets a list of variables associated with a project (does not include global or reference variables). Returns a cVariable object array that contains all the variables in that project.

Syntax
.Variable.GetAllVariables

Example
This example assumes that variables exist in the first available project of a repository.

VBA|VB.NET MyRepository Repository ListofVariables cVariable MyRepository.Project.SetCurrentProject (1) ListofVariables = MyRepository.Variable.GetAllVariables NumberofElements Integer NumberofElements = UBound(ListofVariables) - LBound(ListofVariables) + 1 MsgBox (NumberofElements)