Page 1 of 1

How many records did i find?

Posted: Fri 06 Apr 2007 09:45
by kaffeburk
Im using tmyquery:

I either found one ore zero, but how do i know this? The EOF and the BOF are both true in both cases. How do i find out if a search resulted in notting? Even more nice would be to know how many records i found, is this possible?

Regards, Pär

Posted: Fri 06 Apr 2007 12:18
by Antaeus
Try checking the RecordCount property of TMyQuery, TMyTable, etc.

Posted: Fri 06 Apr 2007 12:39
by kaffeburk
Antaeus wrote:Try checking the RecordCount property of TMyQuery, TMyTable, etc.
Thanks, it works. Got confuced because the help file states:

As implemented in TDataSet, RecordCount is always -1.

So i thougt is was not implemented...