Subject Re: [IBO] bug in TIB_StoredProcedure ?
Author Helen Borrie (TeamIBO)
At 11:39 AM 09-03-02 +0100, you wrote:
>I am using IBO3.
>
>This code
>
>procedure TForm1.FormCreate(Sender: TObject);
>begin
> wrong--->> spC_S:=TIB_StoredProc(Self); {spC_S is declared globally}

need to CREATE the object when you use it:

spC_S:=TIB_StoredProc.Create(Self);

> with spC_S
> DatabaseName:='server';
> SQL.Add('EXECUTE PROCEDURE c_s :cod_cau'); {1}
> StoredProcName:='c_s';
> Prepare;
> end;
>end;

But why are you doing this in FormCreate? Why not drop the component
straight into the IDE, set its SQL and SPName there?


>"cannot focus to a disabled or invisible window"

Presumably you have a control (or group of controls) linked to the output
of this query-that-never happens.

>This could be a bug, since there is no visual part to focus to.

A Control is a Window. It is (or they are) disabled because there are no
data links to enable them. Yes, there is a bug, but it isn't an IBO one. <g>

>Is there a patch or a workaround ?
Yes: fix your code.


regards,
Helen Borrie (TeamIBO Support)

** Please don't email your support questions privately **
Ask on the list and everyone benefits
Don't forget the IB Objects online FAQ - link from any page at
www.ibobjects.com