Page 1 of 1

TXLSWorksheet.IsEmpty returns wrong value

Posted: Fri Jul 21, 2017 11:37 am
by d3nton
Hi!

I am currently testing XLSReadWrite V6 to update our products to this version.
First of all, thank you for the new version :)
Most things run smoothly but some of our unit tests fail.
First thing I noticed was that TXLSWorksheet.IsEmpty has been changed.

Code: Select all

function TXLSWorksheet.IsEmpty: boolean;
begin
  CalcDimensions;
  Result := (FirstCol = LastCol) and (FirstRow = LastRow);
end;
This function returns true if I just write into the first cell (which is obviously wrong).
In V5 there was another mechanism to detect if the sheet was empty which returns the correct value.
Could you please fix this.
Thank you
d3nton

Re: TXLSWorksheet.IsEmpty returns wrong value

Posted: Tue Jul 25, 2017 4:29 pm
by larsa
Hello

This will be fixed in the next update.

Re: TXLSWorksheet.IsEmpty returns wrong value

Posted: Mon Jul 31, 2017 10:53 am
by d3nton
Okay, thank you!

I will test the new update as soon as it is available.

Re: TXLSWorksheet.IsEmpty returns wrong value

Posted: Mon Aug 07, 2017 1:00 pm
by larsa
Hello

The update is ready now, 6.00.13

Re: TXLSWorksheet.IsEmpty returns wrong value

Posted: Fri Aug 11, 2017 6:40 am
by d3nton
Thank you! It works :)