Subject | Re: [IBO] Questions about IncSearching |
---|---|
Author | Tim Meneely |
Post date | 2003-07-14T17:53:43Z |
On Monday 14 July 2003 11:59 am, Christian Mautendorfer wrote:
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
>What I wanted to do is a self contained search.I haven't been following this thread very closely, but don't you just want to
>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.
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