Count: Integer;
The Count property returns the number of blocks in calculated dictionary.
Sub Main;
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 Main;
After executing the example the "i" variable contains the number of dictionary blocks. Calculated dictionary identifier: USER_DIM.
See also: