Show contents 

Dimensions > Dimensions Assembly Interfaces > IDimElementGroup > IDimElementGroup.Count

IDimElementGroup.Count

Syntax

Count: Integer;

Description

The Count property returns the number of primitives in group of elements.

Example

Sub UserProc;
Var
    MB: IMetabase;
    ElemGroup: IDimElementGroup;
    i: Integer;
Begin
    MB:=MetabaseClass.Active;
    If MB.ItemById("D_TO").Children.Count<>0 Then
        ElemGroup:=MB.ItemById("D_TO").Children.Item(0).Bind As IDimElementGroup;
        i:=ElemGroup.Count;
    End If;
End Sub UserProc;

After executing the example the "i" variable contains the number of primitives in the first group of dictionary elements.

See also:

IDimElementGroup