Subject Re: [IBO] Confusion about StoredProc vs use of Cursor or Query (was Help with OnCallBack)
Author Geoff Worboys
> The Stored procedure has SUSPEND and returns multiple rows
> and has ROWCOUNT to pass for the CallBack.

> I'm using the Query.SQL as in SELECT * FROM MYSP.

> Do I need to add a TIB_StoredProc and use that OnCallBack to
> make the progress meter step?

No. OnCallback occurs entirely within the TIB_DataSet based
on a combination of rows fetched, the time elapsed and the
properties you have set. ie. Make sure you have set
CallbackInc to 1 or more.

Set a breakpoint in the procedure
procedure TIB_Dataset.DoCallback;

to try and catch what is going on. If the breakpoint is not
getting hit there then place a breakpoint in the
procedure TIB_Dataset.SysFetchNext;

This should allow you to discover why your particular callback
does not seem to be firing.

--
Geoff Worboys
Telesis Computing