Subject Re: rowset.count()
From Vic <vicpiter@mail.ru>
Date Mon, 09 Sep 2019 08:36:59 -0400
Newsgroups dbase.getting-started

thanks , Ken !

getting (-1) as a result of rowset.rowcount()

So, I had to count it one by one (table in not very big) but it
is no  good anyhow

Best Regards
Victor


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.
>
> 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