Posted By: Matt Ors How does CountAllRecords work? - 08/29/19 01:40 PM
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
Posted By: Marco Kalter Re: How does CountAllRecords work? - 08/30/19 09:11 AM
The records will be counted before opening the dataset by calling the CountQueryHits function, which executes a "select count(*) from (SQL)" statement.
Posted By: Matt Ors Re: How does CountAllRecords work? - 09/02/19 02:39 PM
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.
© Allround Automations forums