ILanerCalculateSerie.ReleaseValues

Fore Syntax

ReleaseValues;

Fore.NET Syntax

ReleaseValues();

Description

The ReleaseValues method determines the series points display mode, in which the calculated values of the points are displayed in the workbook.

Comments

To restore the previous state of the series points the series needs to be updated using the ILanerCalculateSerie.RefreshData method.

The values display mode can be changed using the ILanerCalculateSerie.DisplayDataAs property.

Fore Example

Executing this 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. The time series database workbook, that contains the calculated data series must be loaded to UiErAnalyzer. Also the mode of highlighting the cells, which stored values differ from the calculated ones, is turned on in the workbook.

Select only one calculated series in the workbook and click on the Button1 button. The following procedure is executed:

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    Serie: ILanerCalculateSerie;
Begin
    If LanerBox1.SelectedSeriesCount > 0 Then
        Serie := LanerBox1.SelectedSeries(0As ILanerCalculateSerie;
        If Serie <> Null Then
            Serie.ReleaseValues;
        End If;
    End If;
End Sub Button1OnClick;

After executing the example for the selected series the factor indicating,  that the series stored values differ from the calculated ones, is reset.

Fore.NET Example

Executing the example requires a form with the button1 button, the LanerBoxNet component with the lanerBoxNet1 identifier and the UiErAnalyzerNet component that is data source for LanerBoxNet. The time series database workbook, that contains the calculated data series must be loaded to UiErAnalyzerNet. Also, the mode of highlighting the cells, which stored values differ from the calculated ones, is turned on in the workbook.

Select only one calculated series in the workbook and click on the button1 button. The following procedure is executed:

Imports Prognoz.Platform.Interop.Laner;

Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
    Serie: ILanerCalculateSerie;
Begin
    If lanerBoxNet1.SelectedSeriesCount > 0 Then
        Serie := lanerBoxNet1.SelectedSeries[0As ILanerCalculateSerie;
        If Serie <> Null Then
            Serie.ReleaseValues();
        End If;
    End If;
End Sub;

After executing the example for the selected series the factor indicating,  that the series stored values differ from the calculated ones, is reset.

See also:

ILanerCalculateSerie