Subject | Re: [IBO] TIBOQuery modify Order affects Params |
---|---|
Author | Jaimy Azle |
Post date | 2003-10-29T04:23:36Z |
On Wednesday, October 29, 2003 10:38 AM teamtlas wrote:
it. What if:
+ prepare;
+ prepare;
-Jaimy
--
``I would rather concentrate on a single product or very few products
than generate an inferior or low quality group of products.''
-- Ian David Mead
> The problem I am having is that since converting to IBO the firstAFAIK, everytime you modify the query statement, you'll need to reprepare
> "Open" of a query executes fine but after closing the query and
> modifying the "ORDER BY" clause dynamically, the second "Open" causes
> parameter problems
it. What if:
> with IBOQuery1 do+ SQL[10] := 'ORDER BY O.ODESC ASC';
> begin
> close;
+ prepare;
> Params[0].AsInteger := 0;+ SQL[10] := 'ORDER BY O.ODESC DESC';
> Params[1].AsInteger := 999999999;
> Params[2].AsDateTime := Date;
> Params[3].AsString := '';
> Params[4].AsString := 'zzzzzzzzzzzzzzzzzzzz';
> Params[5].AsInteger := 0;
> Params[6].AsInteger := 999999999;
> Params[7].AsString := 'B';
> open;
> close;
+ prepare;
> Params[0].AsInteger := 0;Salam,
> Params[1].AsInteger := 999999999;
> Params[2].AsDateTime := Date;
> Params[3].AsString := '';
> Params[4].AsString := 'zzzzzzzzzzzzzzzzzzzz';
> Params[5].AsInteger := 0;
> Params[6].AsInteger := 999999999;
> Params[7].AsString := 'B';
> open;
> end;
-Jaimy
--
``I would rather concentrate on a single product or very few products
than generate an inferior or low quality group of products.''
-- Ian David Mead