SaveToFactor([SaveOptions: LnSaveOptions = 255]): ILanerSourceSerie;
SaveOptions. An optional parameter that indicates the changes to be saved.
The SaveToFactor method saves the calculated series. All the series changes are saved by default.
NOTE. The method is outdated, use Save .
Executing the example requires a form with the Button1 button, the LanerBox component with the LanerBox1 identifier and the UiErAnalyzer component used as a data source for LanerBox. Workbook of the time series database must be loaded to UiErAnalyzer.
Before executing the example the added series, that needs to be saved, must be selected in the workbook. Click the button to start executing this example.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
Serie: ILanerSerie;
SerieCalc: ILanerCalculateSerie;
Begin
Serie := LanerBox1.SelectedSeries(0);
If Not Serie.StrictlyDefined
Then
WinApplication.InformationBox("Not all the mandatory attributes of the series are determined'" + Serie.Name + "'");
Else
If Serie.SearchFactor = LnSerieFactorSearchResult.Found
Then
WinApplication.InformationBox("The series with the specified attributes already exists");
Else
SerieCalc := Serie As ILanerCalculateSerie;
SerieCalc.SaveToFactor;
End If;
End If;
End Sub Button1OnClick;
After executing the example the added series is saved if all the mandatory attributes of the series are determined and do not duplicate existing series attributes.
See also: