Subject Re: Using parambyname('param').asstring stop the sequence.
Author rogervellacott
Perhaps the problem is nothing to do with the query, otherwise you
would get a Delphi error message. Do you perhaps have two versions
of the same Delphi unit - one as part of the project, and another one
saved somewhere in the search or browse directories? The debugger
(at least in <= D5) sometimes picks up the wrong unit for display,
and highlights a line which has nothing whatsoever to do with the
code that is actually running.

Roger Vellacott
Passfield Data Systems

--- In IBObjects@y..., "davissammybr" <davissammybr@
y...> wrote:
> Hi,
> I'm using the folowing code:
>
> Var Qry_prev:TIBoQuery;
> Begin
> Qry_Prev := TIBOQuery.Create(Self);
> Qry_Prev.DatabaseName := Connection.Database;
>
> with Qry_Prev do
> begin
> Sql.Clear;
> SQL.add('Select * from mytable where C_login=:login');
> ParamByName('Login').asstring := '7';
> open;
> end;
> end;
>
> I'm debuging the code but the delphi stop in "parambyname" code
> line, and don't show any message error. Where is my error?
>
> Thanks.