Posted By: olbok AfterQuery and IsEmpty function - 08/06/02 10:12 PM
Hello.

I wrote the following code in the AfterQuery event handler:

ShowMessage(IntToStr(Sender.RecordCount));
If Sender.IsEmpty then
ShowMessage('Empty');

After opening this dataset I saw two messages: "2" and "Empty". This dataset really include two records. But why did I see "Empty" message?

Thanks.
Posted By: Marco Kalter Re: AfterQuery and IsEmpty function - 08/07/02 10:42 PM
These results are inconsistent of course, but the AfterQuery event fires as soon as the query is finished on the server. You cannot access the result set yet.

------------------
Marco Kalter
Allround Automations
© Allround Automations forums