LanerBox.OnAddAttribute

Syntax

Sub OnAddAttribute(Sender: Object; Args: ILanerBoxAttributeEventArgs);

Begin

//set of operators;

End Sub OnAddAttribute;

Parameters

Sender. Component that has generated the event.

Args. Event parameters.

Description

The OnAddAttribute occurs when columns with values of indicator attributes are added to a workbook.

Comments

Parameters of this event cannot be changed. Args.Index returns index of the added attribute.

Example

Executing the example requires a form, the LanerBox component named LanerBox1 on the form, 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 Memo1 identifier.

This procedure must be assigned the OnAddAttribute event handler for the LanerBox component.

Sub LanerBox1OnAddAttribute(Sender: Object; Args: ILanerBoxAttributeEventArgs);
Var
    ColCount: Integer;
Begin
    ColCount := Args.Index + 1;
    Memo1.Lines.Clear;
    Memo1.Lines.Add("Number of additional columns containing attributes: " + ColCount.ToString);
End Sub LanerBox1OnAddAttribute;

After columns containing indicator attribute values are added to the workbook, the Memo1 component shows the number of these columns.

See also:

LanerBox