IStandardDimAttributes.Add

Syntax

Add: IStandardDimAttribute;

Description

The Add method adds a table dictionary attribute.

Example

Sub Main;

Var

MB: IMetabase;

MObj: IMetabaseObject;

Dimens: IStandardDimension;

DimAtrrs: IStandardDimAttributes;

DimAtribut: IStandardDimAttribute;

Begin

MB:=MetabaseClass.Active;

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

Dimens:=MObj As IStandardDimension;

DimAtrrs:=Dimens.Attributes;

DimAtribut:=DimAtrrs.Add;

DimAtribut.Id:="New_Atribut";

DimAtribut.Name:=Additional attribute;

DimAtribut.DataType:=DbDataType.Integer;

MObj.Save;

End Sub Main;

After executing the example a new attribute in the table dictionary is created. Table dictionary identifier: TAB_DIM.

See also:

IStandardDimAttributes