System.Classes.TStrings.Count

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

property Count: Integer read GetCount;

C++

__property int Count = {read=GetCount, nodefault};

Properties

Type Visibility Source Unit Parent
property public
System.Classes.pas
System.Classes.hpp
System.Classes TStrings

Description

Introduces an abstract property to represent the number of strings in the list.

Descendants of TStrings implement a Count property to indicate the number of strings in the list.

Use the Count property when iterating over all the strings in the list, or when trying to locate the position of a string relative to the last string in the list.

See Also

Code Examples