IStandardDimAttributes.Remove

Syntax

Remove(Index: Variant): Boolean;

Parameters

Index. Attribute index.

Description

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

Example

Sub Main;

Var

MB: IMetabase;

MObj: IMetabaseObject;

Dimens: IStandardDimension;

DimAtrrs: IStandardDimAttributes;

s: String;

Begin

MB:=MetabaseClass.Active;

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

Dimens:=MObj As IStandardDimension;

DimAtrrs:=Dimens.Attributes;

If DimAtrrs.Remove(DimAtrrs.Count-1) Then

s:="Removed";

Else

s:="It is not removed";

End If;

MObj.Save;

End Sub Main;

After executing the example the "s" variable contains Removed, if the last table dictionary attribute is successfully removed. Table dictionary identifier: TAB_DIM.

See also:

IStandardDimAttributes