IUserDimBlocks.Item

Syntax

Item(Index: Variant): IUserDimBlock;

Parameters

Index — block index.

Description

The Item property returns an object containing a block of calculated dictionary.

Example

Sub Main;

Var

MB: IMetabase;

UsDim: IUserDimension;

UsDimBlocks: IUserDimBlocks;

UsDimBlock: IUserDimBlock;

s: String;

Begin

MB:=MetabaseClass.Active;

UsDim:=MB.ItemById("USER_DIM").Bind As IUserDimension;

UsDimBlocks:=UsDim.Blocks;

UsDimBlock:=UsDimBlocks.Item(0);

s:=UsDimBlock.Name;

End Sub Main;

After executing the example the "s" variable contains the name of the first block of the calculated dictionary. Calculated dictionary identifier: USER_DIM.

See also:

IUserDimBlocks