Code: Select all
xls := TXLSReadWriteII5.Create(nil);
xls[0].AsFormula[1, 1] := 'IF(A1="";'#13'"1";"0")';
MS Excel has no problems parsing such expressions.
I suggest the next improvement in file XLSTokenizer5.pas:
Code: Select all
procedure TXLSTokenizer.EatWhitespaces;
begin
while CharInSet(CurrChar, Xc12Chr_WhitespaceChars) do // instead of CurrChar = Xc12Chr_Space
Eat;
end;
Moisha