These macros return information that can be useful when manipulating result rows in buffers:
DBFIRSTROW – returns the number of the first row in the buffer.
DBLASTROW – returns the number of the last row in the buffer.
dbgetrow – reads the specified row in the row buffer. This routine provides the application with access to buffered rows that have been previously read by dbnextrow.
dbclrbuf – drops rows from the row buffer.