IMsMetaModelVisualController.CreateVariable

Syntax

CreateVariable(Name: String;
               GraphMeta: String;
               Level: DimCalendarLevel;

               Var VariableExists: Boolean;

               [ParentKey: Integer = -1;]
               [InCycle: Boolean = False]): IMsCalculationChainVariable;

Parameters

Name. Name of the created variable.

GraphMeta. Graphical context.

Level. Calendar frequency of the variable.

VariableExists. Indicates that variable with the Name name and the Level frequency exists already in internal time series database. It is returned after executing the method

ParentKey. Parent element key.

InCycle. Indicates that variable is created in cycle.

Description

The CreateVariable method creates a metamodel's internal variable.

Comments

The internal variable can be created, if IMsMetaModelVisualController.HasVariableRubricator is set to True, that is metamodel contains internal time series database.

The GraphMeta parameter can take the Null value.

Available values of the VariableExists parameter:

If the ParentKey parameter is set to -1, the internal variable is created in metamodel root.

Available values of the InCycle parameter:

Example

The method use is given in the example for IMsMetaModelVisualController.HasVariableRubricator.

See also:

IMsMetaModelVisualController