Subject Re: [IBO] Questions about IncSearching
Author Tim Meneely
On Monday 14 July 2003 11:59 am, Christian Mautendorfer wrote:
>What I wanted to do is a self contained search.
>Press button with caption C and go to the first record that starts with C.
>Press button with caption M and go to the first record that starts with M.
>Press button with caption A and go to the first record that starts with A.

I haven't been following this thread very closely, but don't you just want to
make an "OnClick" event for each of the labels on your buttonbar which looks
something like:

procedure TForm1.Label1Click(Sender: TObject);
begin
IB_Query1.IncSearchKey((sender as TLabel).Caption[1],True,True,True);
IB_Query1.ClearIncSearchString;
end;

Of course IB_Query1 has its OrderingItemNo set to the appropriate sort /
search field.

Sorry if I'm over-simplifying!

Tim Meneely
Pittsburgh PA USA