LanerBox.OnLanerChange

Syntax

OnLanerChange(Sender: Object; Args: ILanerBoxChangeEventArgs);

Parameters

Sender. The component that generated the event.

Args. Event parameters.

Description

The OnLanerChange event occurs when a workbook is changed.

Comments

It is possible to identify the workbook section that has been changed by using the Args parameter.

Example

Executing the example requires a form, the LanerBox component named LanerBox1 on the form and the UiErAnalyzer component that is a data source for LanerBox. A workbook of time series database should be loaded to UiErAnalyzer. The form also contains the Memo component with the Memo1 identifier.

This procedure must be assigned as a handler of OnLanerChange event for LanerBox.

Sub LanerBox1OnLanerChange(Sender: Object; Args: IEventArgs);
Begin
    Memo1.Lines.Add("Workbook is changed");
End Sub LanerBox1OnLanerChange;

When the workbook is changed, the Memo1 component displays appropriate message.

See also:

LanerBox