On Thursday, November 11, 2010 04:54:09 pm John Fabiani wrote:
> On Thursday, November 11, 2010 03:30:26 pm Paul McNett wrote:
> > >>> print biz.RowCount
> >
> > 2
> >
> > >>> biz.filter("ss", "stile_type")
> > >>> print biz.RowCount
> >
> > 0
> >
> > >>> biz.new()
> > >>> print biz.RowCount
> >
> > 1
> >
> > >>> biz.removeFilter()
> > >>> print biz.RowCount
> >
> > 1
> >
> > The original 2 records in the unfiltered set were lost.
> >
> > Paul
>
> Right - you would have expected the last RowCount to be 3. Of course a
> biz.requery() would have restored it back to the 2 records which is not
> what I think the developer would want.
>
> Interesting problem.
>
> Johnf
Wait - just re-thinking a bit. After the new() the RowCount should again
report zero (unless "ss" is the default).
Hmmm - of course I think the RowCount should follow the filter.
Johnf
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message:
http://leafe.com/archives/byMID/[email protected]