Subject Re: [IBO] Re: TIBOquery and FilterRecord
Author Helen Borrie
At 02:01 PM 8/02/2005 +0000, you wrote:

> > What is FilterRecord?
> >
> > Helen
>Sorry it's ONfilterrecord event (Tdataset):
>Occurs each time a different record in the dataset becomes the active
>record and filtering is enabled.

I thought you were probably referring to this. But OnFilterRecord is an
event, not a method, so it doesn't get 'called'. if you write a handler
for it, the handler will get called whenever a filter is active in the
dataset, i.e. when Filtered is true.

Actually in the native ib_bdataset, it does something itself - it sets a
flag on each record in the filter's scope. That allows the filter to
remain applicable throughout a range of operations on the filtered set,
e.g. Next will take you to the next record in the filter's scope, rather
than the next record in the buffer. I don't know whether this behaviour is
available to tibodataset. I suspect not, since OnFilterRecord shows up as
an exposed event of the wrapped TDataset.

It will be simpler if you show your filter code and a give a description of
what you expect vs what you get.