Subject Re: rowset.count()
From Marty <mkay11@earthlink.net>
Date Mon, 9 Sep 2019 18:55:39 -0400
Newsgroups dbase.getting-started

On 09/06/19 10:41 AM, Ken Mayer wrote:
> On 9/6/2019 7:33 AM, Vic wrote:
>> Hi, everybody !
>>
>> I do filter rowset (depending on user's wish) through rowset.canGetRow
>> function. rowset is well updated in grid. Still rowset.count() return
>> the same
>> number of rows. doesn't it respect filtering or my code is wrong ? :
>>
>
> No, it doesn't. The count() method returns the full number or rows in
> the table every time. Try using rowset.rowCount() instead.

Rowset.count() is supposed to honor rowset filters set via the filter
property and the cangetrow event.

I just tested this, and count() works correctly for both class rowset()
and class adorowset().

If you can post a test case or a portion of your code where you are
having a problem we can better assist you.

- Marty -

Martin Kay
dBase, LLC




---
This email has been checked for viruses by AVG.
https://www.avg.com