Subject | Re: [IBO] onpreparesql & odd behaviour |
---|---|
Author | Daniel Rail |
Post date | 2002-06-26T23:03:03Z |
At 26/06/2002 07:54 PM, you wrote:
Daniel Rail
Senior System Engineer
ACCRA Group Inc. (www.accra.ca)
ACCRA Med Software Inc. (www.accramed.ca)
>heres the codeIs FQueryList created prior to the event firing?
>
>procedure TDataSetDM.QueryOnPrepareSql(Sender : TObject);
>var
> I : Integer;
>begin
> for I:=0 to FQueryList.Count - 1 do
> //TIBOQuery(Sender).SQLWhereItems.Add (FQueryList.Strings[I]);
> showmessage((FQueryList.Strings[I]));
>end;
>
>the problem is i get an av no matter what code i have in that event
>eg showmessage(TIBOQuery(Sender).Name) will work
>anything else that has to do with SQLWhereItems. will barf
>
>is there an issue with multiple tiboqueries sharing 1 event code ?
Daniel Rail
Senior System Engineer
ACCRA Group Inc. (www.accra.ca)
ACCRA Med Software Inc. (www.accramed.ca)