ILanerBox.ExecuteOperation

Syntax

ExecuteOperation(Operation: LanerBoxOperation;[ Param: Variant = Null]): Variant;

Parameters

Operation. Type of the operation to be performed.

Param. Operation parameters.

Description

The ExecuteOperation method performs a selected operation on the workbook.

Comments

The ILanerBox.CanExecuteOperation method indicates whether the selected operation can be applied to the LanerBox component.

Only the following operations require parameter setting:

Available Values of array elements:

Example

Executing this example requires a form a button named Button1 positioned on this form, the LanerBox component named LanerBox1, and the UiErAnalyzer component used as a data source for LanerBox. The workbook of the time series database is to be loaded to UiErAnalyzer.

This procedure is to be assigned as a handler of the OnClick event for this button. The example is executed on clicking the button.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Begin
    If LanerBox1.CanExecuteOperation(LanerBoxOperation.ChangeMode) Then
        LanerBox1.ExecuteOperation(LanerBoxOperation.ChangeMode);
    End If;
End Sub Button1OnClick;

After executing this example data display mode is changed for the workbook displayed in the LanerBox component, if possible.

See also:

ILanerBox