Subject | onpreparesql & odd behaviour |
---|---|
Author | petegajria |
Post date | 2002-06-26T22:54:07Z |
reposting this...dont think earlier post made it thru...
Hi,
i have a few tiboqueries that have their onpreparesql event all
pointing to
the same code
heres the code
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 ?
the events for all tiboq on a datamodule are being assigned at runtime
via method pointers & rtti
any suggestions here would be helpfull
thanks
pete
Hi,
i have a few tiboqueries that have their onpreparesql event all
pointing to
the same code
heres the code
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 ?
the events for all tiboq on a datamodule are being assigned at runtime
via method pointers & rtti
any suggestions here would be helpfull
thanks
pete