IMsVariableDimensions.MoveTo

Syntax

MoveTo(FromIndex: Integer; ToIndex: Integer);

Parameters

FromIndex. Index of additional dimension position that must be moved.

ToIndex. Index of the position, to which the dimension must be moved.

Description

The MoveTo method moves dictionary in the list of additional dimensions of the modeling variable.

Example

Sub Main;

Var

MB: IMetabase;

MObj: IMetabaseObject;

Variable: IMsVariable;

Dims: IMsVariableDimensions;

Begin

MB := MetabaseClass.Active;

MObj := MB.ItemByIdNamespace("Var_1", MB.ItemById("KONT_MODEL").Key).Edit;

Variable := MObj As IMsVariable;

Dims := Variable.Dimensions;

Dims.MoveTo(0, Dims.Count - 1);

MObj.Save;

End Sub Main;

After executing the example the first additional dimension of modeling variable is moved in the list to the last position.

See also:

IMsVariableDimensions