Item(Index: Integer): IMsVariableDimension;
Index. Index of additional dimension of the modeling variable.
The Item property returns the additional dimension of the output variable, which index is passed by the Index parameter.
Sub Main;
Var
MB: IMetabase;
MObj: IMetabaseObject;
Variable: IMsVariable;
Dims: IMsVariableDimensions;
i: Integer;
Begin
MB := MetabaseClass.Active;
Variable := MB.ItemByIdNamespace("Var_1", MB.ItemById("KONT_MODEL").Key).Bind As IMsVariable;
Dims := Variable.Dimensions;
For i := 0 To Dims.Count - 1 Do
Debug.WriteLine((Dims.Item(i).Model As IMetabaseObject).Id);
End For;
End Sub Main;
After executing the example identifiers of repository dictionary, that are additional dimensions in the modeling variable with the VAR_1 identifiers, are displayed in the console.
See also: