The VCL source for IsEmpty looks like this:

function TDataSet.IsEmpty: Boolean;
begin
  Result := FActiveRecord >= FRecordCount;
end;

I have had problems with RecordCount returning -1 on a newly opened
query so the reliability of IsEmpty would be questionable as well I
assume.  However I have never had a problem with EOF using D 4.02, BDE
5.01, IB 4.2, so perhaps it is a 5.5 problem?

Cheers

Duane.

> -----Original Message-----
> From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, December 21, 1998 10:48 AM
> To:   Multiple recipients of list delphi
> Subject:      [DUG]:  EOF returns TRUE when it's not
> 
> 
> 
> Occasionally, we get querys returning EOF as TRUE when they are
> definately
> not.  Has anyone else had this?
> Using IsEmpty() seems to work.  Going to the last/first record after
> open
> does not always work.
> 
> Using D3.02, BDE 5.01, IB 5.5.
> 
> 
> 
> ----------------------------------------------------------------------
> -----
>     New Zealand Delphi Users group - Delphi List -
> [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to