Show contents 

Dimensions > Dimensions Assembly Interfaces > IUserDimBlocks > IUserDimBlocks.Count

IUserDimBlocks.Count

Syntax

Count: Integer;

Description

The Count property returns the number of blocks in calculated dictionary.

Example

Sub UserProc;
Var
    MB: IMetabase;
    UsDim: IUserDimension;
    UsDimBlocks: IUserDimBlocks;
    i: Integer;
Begin
    MB:=MetabaseClass.Active;
    UsDim:=MB.ItemById("USER_DIM").Bind As IUserDimension;
    UsDimBlocks:=UsDim.Blocks;
    i:=UsDimBlocks.Count;
End Sub UserProc;

After executing the example the "i" variable contains the number of dictionary blocks. Calculated dictionary identifier - USER_DIM.

See also:

IUserDimBlocks