ILaner.SaveModelsWithInputFactor

Syntax

SaveModelsWithInputFactor: Boolean;

Description

The SaveModelsWithInputFactor property determines whether to save models together with an input factor. True - the model is saved with the input factor, False - model is saved without the input factor.

Example

Executing the example requires a form with the Button1 button, the Memo component with the Memo1 identifier, the TabSheetBox component and the UiErAnalyzer component named UiErAnalyzer1, that is a data source for TabSheetBox. Workbook of the time series database must be loaded to UiErAnalyzer1. The workbook must contain a calculated series with defined values of all the attributes.

Click the button to start executing this example.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);

Var

ErAn: IEaxAnalyzer;

Laner: ILaner;

Serie: ILanerSerie;

CalculateSerie: ILanerCalculateSerie;

i: Integer;

Begin

ErAn := UiErAnalyzer1.ErAnalyzer;

Laner := ErAn.Laner;

Laner.SaveModelsWithInputFactor := True;

For i := 0 To Laner.Series.Count - 1 Do

Serie := Laner.Series.Item(i);

If Serie.Kind = LnSerieKind.Calculate Then

CalculateSerie := Serie As ILanerCalculateSerie;

CalculateSerie.SaveModel;

Memo1.Lines.Add(CalculateSerie.Model.Name);

End If;

End For;

End Sub Button1OnClick;

After executing the example the names of the models, which were saved the workbook calculated series to, are shown in the Memo1 component. The models are saved with the input factors.

See also:

ILaner