IRubricatorFactor.Rubricator

Syntax

Rubricator: IRubricatorInstance;

Description

The Rubricator property returns data of the time series database that contains the indicator.

Example

Executing the example requires a form, a button named Button1 on the form, the TabSheetBox component and the UiErAnalyzer component named UiErAnalyzer1 that is a data source for TabSheetBox. A working area of the time series database must be loaded to UiErAnalyzer1. The calculated series is supposed to be in the working area.

Click the button to execute the example.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    ErAn: IEaxAnalyzer;
    Laner: ILaner;
    Serie: ILanerSerie;
    CalculateSerie: ILanerCalculateSerie;
    Factor: IRubricatorFactor;
    i: integer;
    RubInst: IRubricatorInstance;
Begin
    ErAn := UiErAnalyzer1.ErAnalyzer;
    Laner := ErAn.Laner;
    For i := 0 To Laner.Series.Count - 1 Do
        Serie := Laner.Series.Item(i);
        If Serie.Kind = LnSerieKind.Calculate Then
            CalculateSerie := Serie As ILanerCalculateSerie;
            Factor := CalculateSerie.CreateFactor;
            RubInst := Factor.Rubricator;
            Debug.WriteLine((RubInst.Rubricator As IMetabaseObject).Name);
            Break;
        End If;
    End For;
End Sub Button1OnClick;

After executing the example the console window displays name of the time series database that includes the time series.

See also:

IRubricatorFactor