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

Indicates whether the specified operation can be applied to the LanerBox component, is returned by the ILanerBox.CanExecuteOperation method.

Only the following operations require parameter setting:

Available values of array elements:

Example

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

This procedure should 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 the example data display mode is changed for the workbook displayed in the LanerBox component, if possible.

See also:

ILanerBox