Express > Express Assembly Interfaces > ILanerBox > ILanerBox.ExecuteOperation
ExecuteOperation(Operation: LanerBoxOperation; [Param: Variant = Null]): Variant;
Operation. Type of the operation to be executed.
Param. Operation parameters.
The ExecuteOperation method performs a selected operation on the workbook.
The ILanerBox.CanExecuteOperation method indicates whether the specified operation can be applied to the LanerBox component.
Only the following operations require parameter setting:
LanerBoxOperation.DeleteSelectedSeries, LanerBoxOperation.RemoveSelectedFacts. Delete selected series from the workbook or the database. The Param parameter is a one-dimensional array consisting of two Boolean elements:
Param[0]. It determines whether to confirm series deletion.
Param[1]. Determines whether to inform that not all the series are deleted.
Available values of array elements:
True. Show confirmation/information.
False. Do not show confirmation/information.
LanerBoxOperation.CopySelectedSeries. Copy selected series. The Param parameter of Boolean type. Available values:
True. Only selected series values are copied.
False. All series values are copied.
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 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: