OnGetRecordCount Event

Applies to
TIB_Dataset

Declaration
TIB_CustomRecordCount = Procedure(Sender: TIB_Dataset; var RecordCount: longint ) of object;

Description
This event allows for a custom method to determine the number of rows in a dataset. The default method does not work for queries that have complicated GROUP BY conditions.

In some way an alternate SELECT COUNT( * ) statement should be put together to determine what the count should be.

If you are using an IB_Query it may also be possible to performa a FetchAll and then assign the number of the items in the buffer. The fetchAll could be aborted by the user if it takes too long.