TXLSWorksheet.IsEmpty returns wrong value

Questions and answers on how to use XLSReadWriteII 5.
Post Reply
d3nton
Posts: 137
Joined: Thu Oct 25, 2012 9:48 am

TXLSWorksheet.IsEmpty returns wrong value

Post 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
larsa
Site Admin
Posts: 926
Joined: Mon Jun 27, 2005 9:30 pm

Re: TXLSWorksheet.IsEmpty returns wrong value

Post by larsa »

Hello

This will be fixed in the next update.
Lars Arvidsson, Axolot Data
d3nton
Posts: 137
Joined: Thu Oct 25, 2012 9:48 am

Re: TXLSWorksheet.IsEmpty returns wrong value

Post by d3nton »

Okay, thank you!

I will test the new update as soon as it is available.
larsa
Site Admin
Posts: 926
Joined: Mon Jun 27, 2005 9:30 pm

Re: TXLSWorksheet.IsEmpty returns wrong value

Post by larsa »

Hello

The update is ready now, 6.00.13
Lars Arvidsson, Axolot Data
d3nton
Posts: 137
Joined: Thu Oct 25, 2012 9:48 am

Re: TXLSWorksheet.IsEmpty returns wrong value

Post by d3nton »

Thank you! It works :)
Post Reply