Refresh;
The RefreshData method updates the series data.
After the update the unsaved data is lost.
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 working area of the time series database should be loaded to UiErAnalyzer1.
The example is a handler of the OnClick event for the Button1 component.
Add links to the Express, ExtCtrls, Forms, Laner, and Tab system assemblies.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
i: Integer;
SourSerie: ILanerSerie;
Serie: ILanerCalculateSerie;
Begin
If LanerBox1.SelectedSeriesCount > 0 Then
For i := 0 To LanerBox1.SelectedSeriesCount - 1 Do
SourSerie := LanerBox1.SelectedSeries(i);
SourSerie.Hint := "Last update of data '" + DateTime.Now.ToString + "'";
Serie := SourSerie As ILanerCalculateSerie;
Serie.RefreshData;
End For;
End If;
End Sub Button1OnClick;
After executing the example the data of the series, that are selected in the workbook, are updated. The comment containing the last date of the data update is added to the updated series.
See also: