trouble with concatenate and file error with IF

Questions and answers on how to use XLSReadWriteII 3/4/5.
Post Reply
dgriessinger
Posts: 5
Joined: Thu Jan 08, 2009 1:04 pm

trouble with concatenate and file error with IF

Post by dgriessinger »

Hi,

I found 2 anothers bugs :

Concatenate is not working (but I can use &)
and the IF raise file error on xls and #N/A!

procedure TFPrinc.Button2Click(Sender: TObject);
var xls:TXLSReadWriteII4;
sh:TSheet;
begin
xls:=TXLSReadWriteII4.Create(nil);
sh:=xls.Sheets[0];
sh.AsFormula[0,0]:='2+2';
sh.AsFormula[0,1]:='concatenate("Total : ";A1)'; // bug is here, you get #VALUE!
sh.AsFormula[0,2]:='"Total : "&A1'; // work : Total : 4
sh.AsFormula[0,3]:='IF(A1>4;A1;"")'; // when open xls, error message "data lost" and #N/A! in the cell
xls.Filename:='test.xls';
xls.Write;
xls.Free;
end;
larsa
Site Admin
Posts: 926
Joined: Mon Jun 27, 2005 9:30 pm

Re: trouble with concatenate and file error with IF

Post by larsa »

Hello

The problem is located and will be fixed in the next update.
Lars Arvidsson, Axolot Data
dgriessinger
Posts: 5
Joined: Thu Jan 08, 2009 1:04 pm

Re: trouble with concatenate and file error with IF

Post by dgriessinger »

Hi larsa,

when this update will be available ?

thanks.
Post Reply