|Subject||Re: [IBO] Howto iterate through all selected rows|
I'm so use to the TDataset's components that I forget that could be other options... I have noticed that I was wrong for the native IBO components after the next posts.
----- Original Message -----
From: Jason Wharton
Sent: Thursday, November 22, 2001 5:23 PM
Subject: Re: [IBO] Howto iterate through all selected rows
> 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
CPS - Mesa AZ
Yahoo! Groups Sponsor
IB Objects - direct, complete, custom connectivity to Firebird or InterBase
without the need for BDE, ODBC or any other layer.
http://www.ibobjects.com - your IBO community resource for Tech Info papers,
keyword-searchable FAQ, community code contributions and more !
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[Non-text portions of this message have been removed]