LanerBox.OnRemoveAttribute

Syntax

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

Begin

//set of operators;

End Sub OnRemoveAttribute;

Parameters

Sender. Component that has generated the event.

Args. Event parameters.

Description

The OnRemoveAttribute event occurs when a column containing values of indicator attributes is removed from the workbook.

Comments

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

Example

Executing the example requires the 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 set the OnRemoveAttribute event handler for the LanerBox component.

Sub LanerBox1OnRemoveAttribute(Sender: Object; Args: ILanerBoxAttributeEventArgs);
Var
    Col: Integer;
Begin
    Col := Args.Index + 2;
    Memo1.Lines.Clear;
    Memo1.Lines.Add("Column No has been deleted " + ColCount.ToString);
End Sub LanerBox1OnRemoveAttribute;

After removing a column containing values of indicator attributes, the Memo1 component shows the number of the removed column.

See also:

LanerBox