ChildrenBlockCount: Integer;
The ChildrenBlockCount property returns the number of child blocks.
Sub Main;
Var
MB: IMetabase;
Dimens: IStandardDimension;
DimBlocks: IStandardDimBlocks;
DimBlock: IStandardDimBlock;
i: Integer;
Begin
MB:=MetabaseClass.Active;
Dimens:=MB.ItemById("TAB_DIM").Bind As IStandardDimension;
DimBlocks:=Dimens.Blocks;
DimBlock:=DimBlocks.Item(0);
i:=DimBlock.ChildrenBlockCount;
End Sub Main;
After executing the example the "i" variable contains the number of child blocks of the first dictionary block. Table dictionary identifier: TAB_DIM.
See also: