Subject Re: [IBO] Strange behaviour of TIB_IncSearch
Author Helen Borrie
At 10:41 PM 14/01/2003 +0100, you wrote:
>When using TIB_IncSearch on a column which contains NULL or ' ' values, the
>component 'finds' at first the first empty cell, although there are plenty
>of values to be found with this first letter. When I continue typing
>letters, the cursor does not leave the empty cell, only when I backspace to
>the first letter, TIB_IncSearch starts working as it normally does.
>Both SeychKeyByKey and SeakNearest are true
>
>Any hints?

You want the dataset's ClearIncSearchString method.

e.g.
procedure TfmMyForm.ClearTheText(SE: TIB_IncSearch);
begin
with SE.DataSource.Dataset as TIB_BDataset do
ClearIncSearchString;
end;

procedure TfmMyForm.IB_IncSearch1Exit(Sender: TObject);
begin
ClearTheText( IB_IncSearch1 );
end;

Helen