ExecuteMethod(Method: LanerBoxMethod;[ Param: Variant = Null;][ TrySelfExecute: Boolean = False]): Variant;
Method. Series transformation method.
Param. This is an optional parameter. Parameters of series trnasformation. It is used if the Method parameter is set to LanerBoxMethod.TermInfoMethod. Method parameters are passed as an array containing four elements at maximum:
Param[0]: MsInversion. Determines the method of initial transformation applied to the series.
Param[1]: MsInversionLag. Determines the period in which the initial series transformation is to be performed.
Param[2]: Integer. Determines lag for the period of initial series transformation. This element is to be taken into account if value of the Param[1] element is set.
Param[3]. The following mutually exclusive options are available:
Param[3]: String. Lag is passed.
Param[3]: DateTime. Date is passed.
Param[3]: Boolean. Indicates that a data series is passed.
TrySelfExecute. It determines whether to create a new calculated series or to convert the current series to a calculated one True - the current series will be converted to a calculated one, False - a new calculated series will be created. This parameter is optional, it default value is False.
NOTE. This method is outdated, use ILanerBox.ExecuteMethodEx instead.
The ExecuteMethod method transforms a selected data series using a specified method.
Executing the example requires a form with a button on named Button1, the LanerBox component named LanerBox1 and the UiErAnalyzer component which is used as a data source for LanerBox. The workbook of time series database is to be loaded to the UiErAnalyzer1.
This example is executed on clicking the button.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Begin
LanerBox1.ExecuteMethod(LanerBoxMethod.Ln, Null,True);
End Sub Button1OnClick;
After executing the example selected workbook series are to be converted to calculated series calculated using natural logarithm.
See also: