System.Classes.TStrings.GetEnumerator

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetEnumerator: TStringsEnumerator;

C++

TStringsEnumerator* __fastcall GetEnumerator(void);

Properties

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

Description

Returns a TStrings enumerator.

GetEnumerator returns a TStringsEnumerator reference, which enumerates the strings in a TStrings object.

To process all these strings, call the TStringsEnumerator GetCurrent method within a While MoveNext do loop.

See Also