Subject Re: [IBO] Converting TQuery to TIBOQuery
Author henry FRANQUET
Thanks a lot Nando!

--- In IBObjects@yahoogroups.com, Nando Dessena <nandod@t...> wrote:
> Henry,
>
> >> You don't have to change it. TIBOQuery's Params property is a
> hF> TParams, just
> >> as TQuery.
>
> hF> So I don't understand why I have an error with this code:
>
> hF> var
> hF> CurrentParam : TParam;
> hF> FQuery : TIBOQuery;
> hF> Begin
> hF> CurrentParam := FQuery.ParamByName('p' + CurrentField.FName);
>
> hF> It retrun this error:
> hF> [Error] MyFile.pas(453): Incompatible Types : 'TParam'
et 'TIB_Column'
>
> TIBOQuery.ParamByName is actually a TIB_Column for some reason; I
already
> reported it and I think Jason is going to change it to TParam for
the
> next subrelease (actually, I am expecting a bunch of fixes in the
next
> subrelease(s) in this area, which I have found dangerously lacking
in
> contrast to the native IBO flavour). If you need a quick workaround
you
> can either a) change it in IBODataset.pas or b) use
> MyQuery.Params.ParamByName in place of MyQuery.ParamByName.
>
> Ciao
> --
> Nando mailto:nandod@d...