Subject Re: [IBO] IBO 3.6 OnPrepareSQL issue
Author Jason Wharton
This bug has been fixed in the latest,forsure in 4.0.
Jason Wharton
CPS - Mesa AZ
http://www.ibobjects.com


----- Original Message -----
From: "Jeroen W. Pluimers (mailings)" <jeroen.mailings@...>
To: <IBObjects@yahoogroups.com>
Sent: Thursday, July 12, 2001 7:00 AM
Subject: [IBO] IBO 3.6 OnPrepareSQL issue


> Jason,
>
>
> It seems that when you use the OnPrepareSQL event of a TIBOQuery, that the
> 'Sender' parameter is not the IBOQuery itself, but an internal query.
>
> This means you cannot do stuff like this:
>
> procedure TRejectionOverviewReportDataModule.MyIBOQueryPrepareSQL(
> Sender: TObject);
> begin
> FixWhereClause(Sender as TIBOQuery);
> end;
>
> But you have to revert to referencing explicit objects like this:
>
> procedure TRejectionOverviewReportDataModule.MyIBOQueryPrepareSQL(
> Sender: TObject);
> begin
> FixWhereClause(MyIBOQuery);
> end;
>
>
> Jeroen W. Pluimers
> Consultant at All I'M
> http://www.all-im.com
>
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>