ILanerCalculateSerie.ReleaseValues

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.

Example

Executing the example requires a form with the following components: the Button component named Button1, the LanerBox component named LanerBox1, and the UiErAnalyzer component named UiErAnalyzer1. UiErAnalyzer1 is a data source for LanerBox1. A workbook of the time series database that contains calculated data series should be loaded to UiErAnalyzer1. Also the mode of highlighting the cells, which stored values differ from the calculated ones, is turned on in the workbook.

Add links to the Express, ExtCtrls, Forms, Laner, and Tab system assemblies.

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 the indicator that the series stored values differ from the calculated ones is reset for the selected series.

See also:

ILanerCalculateSerie