Count:Integer;
The Count property returns the number of attributes in the collection.
Executing the example requires a form with the Button1 button, the Memo component named Memo1, 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;
LanerAttr: ILanerAttributeColumns;
Begin
ErAn := UiErAnalyzer1.ErAnalyzer;
Laner := ErAn.Laner;
LanerAttr := Laner.AttributeColumns;
Memo1.Lines.Add("The number of attributes in the collection: " + LanerAttr.Count.ToString);
End Sub Button1OnClick;
After executing this example, the number of attributes in the collection is displayed in the Memo component.
See also: