IDimOrder.Attribute

Syntax

Attribute: IDimAttribute;

Description

The Attribute property returns properties of the attribute by which the dictionary is sorted.

Example

Sub UserProc;
Var
    MB: IMetabase;
    DimModel: IDimensionModel;
    DimAttrs: IDimAttributes;
    DimOrd: IDimOrders;
    Order: IDimOrder;
    s: String;
Begin
    MB := MetabaseClass.Active;
    DimModel := MB.ItemById("D_TO").Bind As IDimensionModel;
    DimAttrs := DimModel.Attributes;
    DimOrd := DimAttrs.Orders;
    Order := DimOrd.Item(0);
    s := Order.Attribute.Id;
End Sub UserProc;

After executing the example the "s" variable contains identifier of the first attribute by which the dictionary is sorted.

See also:

IDimOrder