Page 1 of 1

trouble with concatenate and file error with IF

Posted: Wed Jan 14, 2009 1:20 pm
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;

Re: trouble with concatenate and file error with IF

Posted: Thu Jan 15, 2009 4:00 pm
by larsa
Hello

The problem is located and will be fixed in the next update.

Re: trouble with concatenate and file error with IF

Posted: Thu Feb 12, 2009 10:23 am
by dgriessinger
Hi larsa,

when this update will be available ?

thanks.