<< ibec_ds_Edit | IBEBlock | ibec_ds_Bof >>

ibec_ds_Eof

Indicates whether or not a cursor is positioned at the last record in a dataset.

Syntax

  function ibec_ds_Eof(Dataset : variant) : Boolean;

Description

Call ibec_ds_Eof to determine if the cursor is positioned at the last record in a dataset. If ibec_ds_Eof returns True, the cursor is unequivocally on the last row in the dataset. Otherwise this function returns False.

Example

  execute ibeblock
  as
  begin
    select * from RDB$FIELDS as dataset MyDataset;

    while (not ibec_ds_Eof(MyDataset)) do
    begin
      ...
      ibec_ds_Next(MyDataset);
    end

    ...

    close dataset MyDataset;
  end

See also:
SELECT ... AS DATASET
ibec_ds_Bof
ibec_ds_First
ibec_ds_Last
ibec_ds_Next
ibec_ds_Prior

back to top of page
<< ibec_ds_Edit | IBEBlock | ibec_ds_Bof >>