TXLSWorksheet.IsEmpty returns wrong value

Questions and answers on how to use XLSReadWriteII 5.

TXLSWorksheet.IsEmpty returns wrong value

Postby d3nton » Fri Jul 21, 2017 11:37 am

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
d3nton
 
Posts: 124
Joined: Thu Oct 25, 2012 9:48 am

Re: TXLSWorksheet.IsEmpty returns wrong value

Postby larsa » Tue Jul 25, 2017 4:29 pm

Hello

This will be fixed in the next update.
Lars Arvidsson, Axolot Data
larsa
Site Admin
 
Posts: 624
Joined: Mon Jun 27, 2005 9:30 pm

Re: TXLSWorksheet.IsEmpty returns wrong value

Postby d3nton » Mon Jul 31, 2017 10:53 am

Okay, thank you!

I will test the new update as soon as it is available.
d3nton
 
Posts: 124
Joined: Thu Oct 25, 2012 9:48 am

Re: TXLSWorksheet.IsEmpty returns wrong value

Postby larsa » Mon Aug 07, 2017 1:00 pm

Hello

The update is ready now, 6.00.13
Lars Arvidsson, Axolot Data
larsa
Site Admin
 
Posts: 624
Joined: Mon Jun 27, 2005 9:30 pm

Re: TXLSWorksheet.IsEmpty returns wrong value

Postby d3nton » Fri Aug 11, 2017 6:40 am

Thank you! It works :)
d3nton
 
Posts: 124
Joined: Thu Oct 25, 2012 9:48 am


Return to XLSReadWritwII 6

Who is online

Users browsing this forum: No registered users and 1 guest