fpspreadsheet: Remove expression error in CF demo.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7543 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
wp_xxyyzz
2020-07-15 17:05:12 +00:00
parent 0e392dfcaa
commit 001fc5ecce

View File

@ -48,7 +48,7 @@ begin
sh.WriteFormula(i, 18, '=1.0/1.0'); sh.WriteFormula(i, 18, '=1.0/1.0');
end; end;
lastCol := 18; lastCol := 18;
(*
// conditional format #1: equal to number constant // conditional format #1: equal to number constant
sh.WriteText(row, 0, 'equal to constant 5'); sh.WriteText(row, 0, 'equal to constant 5');
sh.WriteText(row, 1, 'background yellow'); sh.WriteText(row, 1, 'background yellow');
@ -264,7 +264,7 @@ begin
fmt.SetFont(wb.AddFont('Courier New', 14, [fssBold], scRed)); fmt.SetFont(wb.AddFont('Courier New', 14, [fssBold], scRed));
fmtIdx := wb.AddCellFormat(fmt); fmtIdx := wb.AddCellFormat(fmt);
sh.WriteConditionalCellFormat(Range(row, 2, row, lastCol), cfcNotContainsErrors, fmtIdx); sh.WriteConditionalCellFormat(Range(row, 2, row, lastCol), cfcNotContainsErrors, fmtIdx);
*)
// conditional format: expression // conditional format: expression
inc(row); inc(row);
sh.WriteText(row, 0, 'expression: ISNUMBER($E$5)'); sh.WriteText(row, 0, 'expression: ISNUMBER($E$5)');
@ -272,7 +272,7 @@ begin
InitFormatRecord(fmt); InitFormatRecord(fmt);
fmt.SetBackgroundColor(scBlue); fmt.SetBackgroundColor(scBlue);
fmtIdx := wb.AddCellFormat(fmt); fmtIdx := wb.AddCellFormat(fmt);
sh.WriteConditionalCellFormat(Range(row, 2, row, 2), cfcExpression, '=IS-NUMBER($E$5)', fmtIdx); sh.WriteConditionalCellFormat(Range(row, 2, row, 2), cfcExpression, '=ISNUMBER($E$5)', fmtIdx);
// Two rules in the same conditional format // Two rules in the same conditional format
inc(row); inc(row);