IMsVariableSampling.SourceDimension

Syntax

SourceDimension: IDimensionModel;

Description

The SourceDimension property returns structure of calendar dimension for the modeling variable.

Example

Sub Main;

Var

MB: IMetabase;

Variable: IMsVariable;

Lvl: IDimLevels;

i: Integer;

Begin

MB := MetabaseClass.Active;

Variable := MB.ItemByIdNamespace("Var_1", MB.ItemById("KONT_MODEL").Key).Bind As IMsVariable;

Lvl := Variable.Sampling.SourceDimension.Levels;

For i := 0 To Lvl.Count - 1 Do

Debug.WriteLine(Lvl.Item(i).Name);

End For;

End Sub Main;

After executing the example, names of calendar levels, that are present in variable frequency with the Var_1 identifier, are displayed in the console window.

See also:

IMsVariableSampling