Subject Re: rowset.count()
From Ken Mayer <dbase@nospam.goldenstag.net>
Date Fri, 6 Sep 2019 07:41:45 -0700
Newsgroups dbase.getting-started

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.

Ken


--
*Ken Mayer*
Ken's dBASE Page: http://www.goldenstag.net/dbase
The dUFLP: http://www.goldenstag.net/dbase/index.htm#duflp
dBASE Books: http://www.goldenstag.net/dbase/Books/dBASEBooks.htm
dBASE Tutorial: http://www.goldenstag.net/dbase/Tutorial/00_Preface.htm