Subject RE: [IBO] Error with parameters
Author Support List
Andrei,

Go into the file IBA_Row.imp and look for this method and make it like this
one:

function TIB_Row.GetColumns( Index: word ): TIB_Column;
begin
if not Statement.Prepared then // Added this line.
Statement.Prepare; // Added this line.
if Index < FColumnList.Count then
Result := FColumnList.Items[ Index ]
else
Result := nil;
end;

Let me know if this works for you.

Thanks,
Jason LeRoy Wharton
www.ibobjects.com


> -----Original Message-----
> From: IBObjects@yahoogroups.com [mailto:IBObjects@yahoogroups.com] On
> Behalf Of Support List
> Sent: Sunday, November 06, 2011 7:40 AM
> To: IBObjects@yahoogroups.com
> Subject: RE: [IBO] Error with parameters
>
> Andrei,
>
> > To reduce the probabilities, I created a new VM at VirtualBox, with
> > Win XP SP3, BDS 2006, FB 2.5.1 and IBO 4.9.14 14. The problem persist.
> >
> > Tried with FB 2.5.0, since this is what I was using a few days ago,
> > same behavior.
> >
> > Uninstalled IBO, deleted the bpls at \Windows\System32, and installed
> > IBO 4.9.9 (the version I think I was using before), and... there it
> > is! Something happened after version 4.9.9 that is causing this
> > strange behavior.
> >
> > By the way, while I was with 4.9.14 version, I added a
> > qry_tmp.prepare, before the param feed, and then I got no error. But
> > this is terrible, cause as I said, I have several projects with
> > several code like this, change everything is completely out of my
> > plans.
> >
> > So Jason, I donĀ“t know if my msg put some light to you, I just want to
> > let u know.
>
> Ok, you were coming from a rather old version. That makes more since.
>
> I believe I had deliberately changed that behavior because there were
> other
> problems but I'll see if I can figure something out that will work better.
>
> Stay tuned for a patch that you can try.
>
> Jason
>
>
>
>
> ------------------------------------
>
> __________________________________________________________________________
> _
> IB Objects - direct, complete, custom connectivity to Firebird or
> InterBase
> without the need for BDE, ODBC or any other layer.
> __________________________________________________________________________
> _
> http://www.ibobjects.com - your IBO community resource for Tech Info
> papers,
> keyword-searchable FAQ, community code contributions and more !
> Yahoo! Groups Links
>
>
>