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.
The ILanerBox.CanExecuteOperation method indicates whether the selected operation can be applied to the LanerBox component.
Only the following operations require parameter setting:
LanerBoxOperation.DeleteSelectedSeries, LanerBoxOperation.RemoveSelectedFacts. Deletes selected series from workbook or the database. The Param parameter is a one-dimensional array consisting of two Boolean elements:
Param[0]. 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 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: