TrySelfExecute: Boolean;
The TrySelfExecute property 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. The parameter is optional, it default value is False.
Executing the example requires a form with a button named Button1 on it, the LanerBox component named LanerBox1 and the UiErAnalyzer component which is used as a data source for LanerBox. Workbook of the time series database must be loaded to UiErAnalyzer1.
The example is executed on clicking the button.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
Sett: ILanerBoxMethodSettings;
Param: Array[4] Of Variant;
Begin
Sett := New LanerBoxMethodSettings.Create;
Sett.TrySelfExecute := True;
Sett.CreateDerivedSeries := False;
Param[0] := MsInversion.Diff;
Param[1] := MsInversionLag.PrecidingYear;
Param[2] := -3;
Sett.Param := Param;
LanerBox1.ExecuteMethodEx(LanerBoxMethod.TermInfoMethod, Sett);
End Sub Button1OnClick;
After executing the example selected workbook series are converted to calculated ones calculated as increase of series values to the previous year with a lag of 3.
See also: