How does CountAllRecords work?

Matt Ors

Member²
Hello

I searched the sources for 'CountAllRecords' and I see that it's (FCountAllRecords) only accessed in function TOracleDataset.GetRecordCount and procedure TOracleDataset.SetRecNo.

Then I searched for GetRecordCount and SetRecNo and all I see is the function declaration and implementation. No calls anywhere.

Can you tell me if I missed something? I don't see where the records are counted before the dataset is opened.

Best Regards
Matt
 
The records will be counted before opening the dataset by calling the CountQueryHits function, which executes a "select count(*) from (SQL)" statement.
 
Ok. The issue was that a control I'm using required more configuration to make it support sequence numbers. Now the program calls CountQueryHits as you said.
 
Back
Top