Show contents 

Express > Express Assembly Interfaces > ILanerBox > ILanerBox.IsOptionSwitchedOn

ILanerBox.IsOptionSwitchedOn

Syntax

IsOptionSwitchedOn(Operation: LanerBoxOperation): Boolean;

Parameters

Operation. Operation executed with a workbook.

Description

The IsOptionSwitchedOn method indicates whether the specified operation is applied in the workbook.

Comments

The method is applied for the following operations:

Available values:

Example

Executing the example requires a form with the Button1 button, the LanerBox component named LanerBox1 and the UiErAnalyzer component that is a data source for LanerBox. A workbook of the time series database should be loaded to UiErAnalyzer1.

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

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Begin
    If Not LanerBox1.IsOptionSwitchedOn(LanerBoxOperation.Pareto) Then
        LanerBox1.ExecuteOperation(LanerBoxOperation.Pareto);
    End If;
End Sub Button1OnClick;

After executing the example the Pareto analysis is applied to the workbook displayed in LanerBox.

See also:

ILanerBox