IRubricatorFactor.Rubricator

Syntax

Rubricator: IRubricatorInstance;

Description

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

Example

Executing the example requires a form, a button with the Button1 identifier on the form, the TabSheetBox component and the UiErAnalyzer component named UiErAnalyzer1, which is used as 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;

RubIns: 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;

RubIns := Factor.Rubricator;

Debug.WriteLine((RubIns.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