IStdDimOrders.Add

Syntax

Add(Attribute: IStandardDimAttribute; isReverseOrder: Boolean): Boolean;

Parameters

Attribute. Dictionary attribute to be added in sorting list.

isReverseOrder. Sorting order that will be set by the specified attribute. If the True value is passed, descending sorting is set. If the False value is passed, ascending sorting is set.

Description

The Add method adds the table dictionary to sorting list.

This method returns True if the attribute is added to sorting list, and False if it is not added.

Example

Sub UserProc;
Var
    MB: IMetabase;
    MObj: IMetabaseObject;
    Dimens: IStandardDimension;
    DimAttrs: IStandardDimAttributes;
    DimOrd: IStdDimOrders;
Begin
    MB := MetabaseClass.Active;
    MObj := MB.ItemById("TAB_DIM").Edit;
    Dimens := MObj As IStandardDimension;
    DimAttrs := Dimens.Attributes;
    DimOrd := DimAttrs.Orders;
    DimOrd.Add(DimAttrs.Name, False);
    MObj.Save;
End Sub UserProc;

After executing the example the sorting list of table dictionary contains the Name attribute. Sorting by this attribute is set as ascending.

See also:

IStdDimOrders