CRDataset::isEOF
Previous  Index  Next

virtual bool isEOF() const;

Return Value

True if the dataset contains no records or if you have scrolled beyond the last record, otherwise false.

Description

Call this member function as you scroll from record to record to find out if the current record pointer is positioned to the last record of the dataset. You can also use isEOF to determine whether the dataset contains any records or is empty.

Example

  dataset.open();
  if (dataset.isEOF())
    return; // dataset is empty

  // scroll to last record
  while (!dataset.isEOF()
    dataset.next();

See Also

CRDataset::isBOF, CRDataset::last, CRDataset::next


CRDataset | Classes | OCL | Index