FindById(Id: String): ILanerSerie;
Id - identifier of the series.
The FindById method searches the series in collection by the identifier and returns the object, containing the series in case of a successful search.
Executing the example requires a form with the Button1 button, the TabSheetBox component and the UiErAnalyzer component named UiErAnalyzer1 that is a data source for TabSheetBox. Working area of the time series database must be loaded to UiErAnalyzer1.
Click the button to start executing this example.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
ErAn: IEaxAnalyzer;
Laner: ILaner;
LSerieList: ILanerSerieList;
Serie: ILanerSerie;
i: integer;
Begin
ErAn := UiErAnalyzer1.ErAnalyzer;
Laner := ErAn.Laner;
LSerieList := Laner.SeriesList;
Serie := LSerieList.FindById("OBJ1");
If Serie <> Null Then
Debug.WriteLine(Serie.Name);
End If;
End Sub Button1OnClick;
After executing this example the series with the OBJ1 identifier is searched. If the series is found, its name is displayed in console window.
See also: