IStandardDimIndexAttributes.Remove

Syntax

Remove(Value: IStandardDimAttribute);

Parameters

Value. The dictionary attribute, that must be removed from index.

Description

The Remove method removes attribute from dictionary index. The attribute is passed by the Value parameter.

Example

Sub Main;

Var

MB: IMetabase;

MObj: IMetabaseObject;

Dim: IStandardDimension;

DimInds: IStandardDimIndexes;

DimIndex: IStandardDimIndex;

DimIndAttrs: IStandardDimIndexAttributes;

Begin

MB:=MetabaseClass.Active;

MObj:=MB.ItemById("TAB_DIM").Edit;

Dim:=MObj As IStandardDimension;

DimInds:=Dim.Indexes;

If DimInds.Count<>0 Then

DimIndex:=DimInds.Item(0);

DimIndAttrs:=DimIndex.Attributes;

DimIndAttrs.Remove(DimIndAttrs.Item(DimIndAttrs.Count-1));

End If;

MObj.Save;

End Sub Main;

After executing the example the last attribute of the index is removed from the first index. Table dictionary identifier: TAB_DIM.

See also:

IStandardDimIndexAttributes