Skip to content

Flow documentation · legacy product

Dataset.EOF ​

Declaration ​

property EOF: Boolean

Example ​

pascal
procedure OnMapEvent(var Value:Variant);
begin
  if DATASET.EOF then //check EOF to see if any more records exist
 LogInfo('There are no more records in this dataset')
end;
pascal
procedure OnMapEvent(var Value:Variant);
begin
  while not DATASET.EOF do //loop data set until end of its records
begin
do something...
DATASET.Next; //move to the next record
end;
end;

Description ​

Indicates whether the data set is at the end of its records. If EOF returns True then there are no more records in this data set. If EOF returns False then more records exist.

Typically used to determine whether there are any records at all within the data set - if you have just started working with the data set and it returns True then there are no records.

Also good for looping through a data set. While the data set is not EOF you can do something with its data and then move to the next record