Subject RE: [IBO] How use SearchMask with TIB_LocateEdit
Author Support List
> I would recommend that you use an OnFilterRecord event and then based on
> the criteria set the filtered flag accordingly.

I forgot to make mention that you can call RefreshFilteredRows each time the
search criteria changes. This won't cause a refresh of records from the
server and will merely refresh the status of the filtered flag for each
record in your buffer. Of course, since you are writing your own
OnFilterRecord event handler, you get to make it work however you like. And,
since IBO has both a current record pointer as well as a buffer record
pointer, you have to pay attention to what record pointer you are working
with. More often than not, you are going to get the buffer record pointer
passed in so you will need to work with the BufferFields instead of with the
Fields column array. What I recommend you do to make the event have good
performance is to avoid using FieldByName(). Instead, setup some integer
variables for each column index and then use the
MyRow.Columns[MyIndexVar].AsString so that you quickly access the right
TIB_Column object, regardless of whether it is for the buffer or the current
record.

If any of this isn't clear to you, please let me know. As far as I know, IBO
is the only buffered dataset that gives you two different record pointers to
work with so it can be a little confusing until you get used to it.

Jason