Subject Re: [IBO] Howto iterate through all selected rows
Author Jason Wharton
> It depends on the Grid, not on the query.
> I don't know what type of grid you are using.
> Look at the properties of the grid, or tell us what Grid you are using.

In TDBGrid what you say is true but with the native IBO components and
controls, a records selection is stored in the dataset.

I don't maintain a separate "index" in the buffer of records to give direct
iteration capability to selected rows. You need to iterate the entire buffer
and check each record. If you want to avoid pulling in records that may not
be fetched yet then iterate through the BufferRowNum from BofRowNum + 1 and
EofRowNum - 1. Use BufferFieldByName(), BufferFields and BufferRowNum
properties.

HTH,
Jason Wharton
CPS - Mesa AZ
http://www.ibobjects.com