IRubricatorInstanceList.Count

Syntax

Count: Integer;

Description

The Count property returns the number of time series databases in the collection.

Comments

Collection capacity is the number of elements the collection can contain. The Count property is the number of elements actually contained in the collection.

Capacity is always greater or equal to the Count property value. If the Count property value exceeds capacity when an element is added to the collection, it is increased automatically.

Example

Executing the example requires a form with the Button1 button on the form, the LanerBox component named LanerBox1 and the UiErAnalyzer component, which is used as a data source for LanerBox. A workbook of the time series database in series mode must be loaded to UiErAnalyzer1. Also, add links to the Cubes and Metabase system assemblies.

Click the button to execute the example.

    Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
    Var
        Laner: ILaner;
        RubList: IRubricatorInstanceList;
        i: Integer;
        RubrInst: IRubricatorInstance;
    Begin
        Laner := UiErAnalyzer1.ErAnalyzer.Laner;
        RubList := Laner.UsedRubricators;
        For i := 0 To RubList.Count - 1 do
            RubrInst := RubList.Item(i);
            Debug.WriteLine((RubrInst.Rubricator As IMetabaseObject).Name);
        End For;
    End Sub Button1OnClick;

After executing the example the console window displays names of all time series databases used as data sources for the loaded workbook.

See also:

IRubricatorInstanceList