Subject | Re: [IBO] is dataset empty |
---|---|
Author | Lucas Franzen |
Post date | 2004-01-06T01:17:57Z |
Hi Paul,
Paul Vinkenoog schrieb:
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.
Paul Vinkenoog schrieb:
>Hello Luc,Of course I'll do a FIRST first ;-)
>
>
>
>>>how to emulate IsEmpty for TIB_Dataset ?
>>>
>>>
>
>
>
>>For TIB_Cursors I use: EOF AND BOF.
>>If this is true, it's empty.
>>
>>
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.