Subject Re: [IBO] Meaning of error message
Author Jason Wharton
> In my applications TIB_DATASOURCE.ONSTATECHANGED event I have the
> follows code:
> Var b : Boolean;
> b := MYQuery.FieldByName('Posted').AsBoolean;

When a dataset is Unprepared it undergoes a change in state. When the
FieldByName() method is called it attempts to prepare a statement that isn't
prepared. So, in the process of unpreparing a statement you are attempting
to reprepare it in the notification that it is now unprepared.

I think I would get a little confused at that too.

Sorry to assume otherwise but I have never heard of this error in any other
situation than what I had stated.

Jason Wharton
CPS - Mesa AZ