Show contents 

Dimensions > Dimensions Assembly Interfaces > IStandardDimBlock > IStandardDimBlock.ChildrenBlockCount

IStandardDimBlock.ChildrenBlockCount

Syntax

ChildrenBlockCount: Integer;

Description

The ChildrenBlockCount property returns the number of child blocks.

Example

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

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:

IStandardDimBlock