Subject | Re[2]: [IBO] Converting TQuery to TIBOQuery |
---|---|
Author | Nando Dessena |
Post date | 2003-07-21T13:16:33Z |
Henry,
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@...
>> You don't have to change it. TIBOQuery's Params property is ahF> 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@...