System.Classes.TReader.EndOfList

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

function EndOfList: Boolean;

C++

bool __fastcall EndOfList(void);

Properties

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

Description

Indicates the end of a group of items that are sequentially read from the stream.

EndOfList is used by other methods that iterate through a list of items when reading in data. It checks for a value type that signals the end of that type of data. EndOfList returns true if the reader object has read to the end of a list of items.

When reading a list of items, the reader object calls ReadListBegin method, then the items are repeatedly read until EndOfList returns true. Finally, the reader calls ReadListEnd.

Note: Component writers can use this in their defined property ReadData methods, as, for example, with TStrings.

See Also