Subject | RE: AGAIN - [IBO] Search question |
---|---|
Author | Nico Callewaert |
Post date | 2001-03-29T09:32:38Z |
I didn't think of the Refresh, many many thanks Harald
-----Oorspronkelijk bericht-----
Van: Harald Klomann [mailto:nibler@...]
Verzonden: donderdag 29 maart 2001 11:19
Aan: IBObjects@yahoogroups.com
Onderwerp: Re: AGAIN - [IBO] Search question
Nico Callewaert wrote:
in the OnClick event of the checkbox :
procedure TForm1.CheckBox1Click(Sender: TObject);
begin
IB_Query1.InvalidateSQL;
IB_Query1.Refresh
end;
Then it will work !
Harald
Yahoo! Groups Sponsor
Click Here to Find Software Faster
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[Non-text portions of this message have been removed]
-----Oorspronkelijk bericht-----
Van: Harald Klomann [mailto:nibler@...]
Verzonden: donderdag 29 maart 2001 11:19
Aan: IBObjects@yahoogroups.com
Onderwerp: Re: AGAIN - [IBO] Search question
Nico Callewaert wrote:
>again.
> If I would remove the InvalidateSQL, the statement will not reprepare
> To set the SQLWhereItems in the OnClick event of a checkbox won't workneed
> because, the only place you can have SQLWhereItems defined is in the
> OnPrepare clause of the query. So when a user clicks the checkbox, I
> to Reprepare the statement, so the correct SQLWhereItems is set in theOk, I see what you want do !
> OnPrepare event.
>
in the OnClick event of the checkbox :
procedure TForm1.CheckBox1Click(Sender: TObject);
begin
IB_Query1.InvalidateSQL;
IB_Query1.Refresh
end;
Then it will work !
Harald
Yahoo! Groups Sponsor
Click Here to Find Software Faster
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[Non-text portions of this message have been removed]