ExecuteOperation(Operation: LanerBoxOperation;[ Param: Variant = Null]): Variant;
Operation. Type of the operation to be performed.
Param. Operation parameters.
The ExecuteOperation method performs a selected operation on the workbook.
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:
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 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: