Show contents 

Dimensions > Dimensions Assembly Interfaces > IUserDimBlocks > IUserDimBlocks.Item

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 UserProc;
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 UserProc;

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