Show contents 

Dimensions > Dimensions Assembly Interfaces > IUserDimOrders > IUserDimOrders.Item

IUserDimOrders.Item

Syntax

Item(Index: Integer): IUserDimOrder;

Parameters

Index. Attribute index is in sorting list.

Description

The Item property returns sorting order settings for the attribute included into sorting list of a calculated dictionary. Attribute index is passed by the Index parameter.

Example

Sub UserProc;
Var
    MB: IMetabase;
    UsDim: IUserDimension;
    UsDimAtr: IUserDimAttributes;
    DimOrd: IUserDimOrders;
    Order: IUserDimOrder;
    s: String;
Begin
    MB := MetabaseClass.Active;
    UsDim := MB.ItemById("USER_DIM").Bind As IUserDimension;
    UsDimAtr := UsDim.Attributes;
    DimOrd := UsDimAtr.Orders;
    Order := DimOrd.Item(0);
    If Order.ReverseOrder Then
        s := "Descending";
    Else
        s := "Ascending";
    End If;
End Sub UserProc;

After executing the example the "s" variable contains Ascending if dictionary elements are sorted in ascending order by the first attribute in the sorting list.

See also:

IUserDimOrders