Subject Re: [IBO] which dataset, onprocessSearch
Author Helen Borrie
At 12:43 PM 15/04/2007, you wrote:
>On the ib_connection.OnProcessSearchBuffer event, how can I know which
>dataset (ib_query) is being processed?
>
>TIA
>
>using ibo 4.5b

The IB_Field argument presented by the event handler is a
TIB_Column. The Statement property of a TIB_Column is a
TIB_Statement. All dataset classes are descendants of TIB_Statement
and all objects have a Name property.

So, e.g., if you want to test the name of the dataset in this event handler:

if IB_Field.Statement.Name = 'TheInterestingOne' then ....

Of course, you might want to examine some other property of the
IB_Field object or of objects that are incorporated in it...this is
just a simple example.

Helen