IUserDimAttributes.Remove

Syntax

Remove(Index: Variant): Boolean;

Parameters

Index. Attribute index.

Description

The Remove method removes calculated dictionary attribute and returns True if it is successfully removed. Attribute index is passed by the Index parameter.

Example

Sub UserProc;
Var
    MB: IMetabase;
    MObj: IMetabaseObject;
    UsDim: IUserDimension;
    UsDimAts: IUserDimAttributes;
    s: String;
Begin
    MB:=MetabaseClass.Active;
    MObj:=MB.ItemById("USER_DIM").Edit;
    UsDim:=MObj As IUserDimension;
    UsDimAts:=UsDim.Attributes;
    If UsDimAts.Remove(UsDimAts.Count-1Then
        s:="Removed";
    Else
        s:="It is not removed";
    End If;
    MObj.Save;
End Sub UserProc;

After executing the example the "s" variable contains Removed, if the last attribute of the calculated dictionary is successfully removed. Calculated dictionary identifier - USER_DIM.

See also:

IUserDimAttributes