Subject Re: [IBO] is dataset empty
Author Lucas Franzen
Hi Paul,


Paul Vinkenoog schrieb:

>Hello Luc,
>
>
>
>>>how to emulate IsEmpty for TIB_Dataset ?
>>>
>>>
>
>
>
>>For TIB_Cursors I use: EOF AND BOF.
>>If this is true, it's empty.
>>
>>

Of course I'll do a FIRST first ;-)

In fact it always looks like:

with myCursor do
begin
if not Prepared then Prepare;
First;
if EOF AND BOF then
begin
/* Do sth. */
end
else begin
/* do sth. else */
end;
CLOSE;
end;

I'm using that for several years now without ever having had any trouble
that way.
AutoFetchAll is NEVER set to true with my Cursors.

Luc.