Issue with asformula

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

Issue with asformula

Post by dgriessinger »

I have the 4.00.12 registred version, and asformula have problem :

Try this

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 : =CONCATENATE("Total : ";A1;A1) !!!!! and #VALUE!
sh.Calculate(0,1);
xls.Filename:='test.xls';
xls.Write;
xls.Free;
end;


The end of formula is duplicated !

CONCATENATE("Total : ";A1)
give
CONCATENATE("Total : ";A1;A1)

and the calcul don't work

Any idea ?
larsa
Site Admin
Posts: 926
Joined: Mon Jun 27, 2005 9:30 pm

Re: Issue with asformula

Post by larsa »

Hello

The error is located and will be fixed in the next update.
Lars Arvidsson, Axolot Data
Post Reply