IDimSelectionSchema.MoveDown

Syntax

MoveDown(Index: Integer);

Parameters

Index — primitive index.

Description

The MoveDown method moves the primitive index of which is passed by the Index parameter one position down.

Example

Sub UserProc;
Var
    MB: IMetabase;
    ObjDesc: IMetabaseObjectDescriptor;
    DimSelSchema: IDimSelectionSchema;
    MObj: IMetabaseObject;
Begin
    MB:=MetabaseClass.Active;
    ObjDesc:=MB.ItemById("TAB_DIM");
    If ObjDesc.Children.Count<>0 Then
        If ObjDesc.Children.Item(0).ClassId=1030 Then
            MObj:=ObjDesc.Children.Item(0).Edit;
            DimSelSchema:=MObj As IDimSelectionSchema;
            DimSelSchema.MoveDown(0);
            MObj.Save;
        End If;
    End If;
End Sub UserProc;

After executing the example the first primitive of the first schema of dictionary selection is moved one position down. Dictionary identifier: TAB_DIM.

See also:

IDimSelectionSchema