IUserDimLevels.Add

Syntax

Add: IUserDimLevel;

Description

The Add method adds a level to calculated dictionary.

Example

Sub Main;

Var

MB: IMetabase;

MObj: IMetabaseObject;

UsDim: IUserDimension;

UsDimLevs: IUserDimLevels;

UsDimLevel: IUserDimLevel;

Begin

MB:=MetabaseClass.Active;

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

UsDim:=MObj As IUserDimension;

UsDimLevs:=UsDim.Levels;

UsDimLevel:=UsDimLevs.Add;

UsDimLevel.Id:="New_Level";

UsDimLevel.Name:=Additional level;

MObj.Save;

End Sub Main;

After executing the example a calculated dictionary contains a new level. Calculated dictionary identifier: USER_DIM.

See also:

IUserDimLevels