RAD Studio VCL Reference
TReader.EndOfList Method

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

function EndOfList: Boolean;
__fastcall Boolean EndOfList();

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.


Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!