LanerBox.OnAddSerie

Syntax

Sub OnAddSerie(Sender: Object; Args: ILanerBoxSerieEventArgs);

Begin

//set of operators;

End Sub OnAddSerie;

Parameters

Sender. Component that has generated the event.

Args. Event parameters.

Description

The OnAddSerie event occurs when a new series is added to a workbook.

Comments

Parameters of this event cannot be changed.

Example

Executing the example requires a form containing the LanerBox component named LanerBox1 name, and the UiErAnalyzer component used as a data source for LanerBox. The workbook of time series database must be loaded to the UiErAnalyzer. The form also contains the Memo component with the Memo1 identifier.

This procedure must be set the OnAddSerie event handler for LanerBox component.

Sub LanerBox1OnAddSerie(Sender: Object; Args: ILanerBoxSerieEventArgs);
Begin
    Memo1.Lines.Add("Index of the added series: " + Args.SerieIndex.ToString);
    If Args.Factor <> Null Then
        Memo1.Lines.Add("Indicator key: " + Args.Factor.Factor.ToString);
    End If;
    If Args.Serie <> Null Then
        Memo1.Lines.Add("Series name: " + Args.Serie.Name);
    End If;
End Sub LanerBox1OnAddSerie;

After a series is added to the workbook, information on this series is displayed in the Memo1 component.

See also:

LanerBox