You've already forked lazarus-ccr
fpspreadsheet: XLSX reader supports expression conditional format. Add test case for it.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7546 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@@ -488,21 +488,31 @@ var
|
||||
p: Integer;
|
||||
s: String;
|
||||
f: TsRelFlags;
|
||||
singleCell: Boolean = false;
|
||||
begin
|
||||
Result := True;
|
||||
|
||||
// First find the colon
|
||||
p := pos(':', AStr);
|
||||
if p = 0 then exit(false);
|
||||
if p = 0 then //exit(false);
|
||||
begin
|
||||
singleCell := true;
|
||||
Result := ParseCellString(AStr, AFirstcellRow, AFirstCellCol, f);
|
||||
if not Result then exit;
|
||||
ALastCellRow := AFirstCellRow;
|
||||
ALastCellCol := AFirstCellCol;
|
||||
AFlags := f;
|
||||
end else
|
||||
begin
|
||||
// Analyze part after the colon
|
||||
s := copy(AStr, p+1, Length(AStr));
|
||||
Result := ParseCellString(s, ALastCellRow, ALastCellCol, f);
|
||||
if not Result then exit;
|
||||
|
||||
// Analyze part after the colon
|
||||
s := copy(AStr, p+1, Length(AStr));
|
||||
Result := ParseCellString(s, ALastCellRow, ALastCellCol, f);
|
||||
if not Result then exit;
|
||||
|
||||
// Analyze part before the colon
|
||||
s := copy(AStr, 1, p-1);
|
||||
Result := ParseCellString(s, AFirstCellRow, AFirstCellCol, AFlags);
|
||||
// Analyze part before the colon
|
||||
s := copy(AStr, 1, p-1);
|
||||
Result := ParseCellString(s, AFirstCellRow, AFirstCellCol, AFlags);
|
||||
end;
|
||||
|
||||
// Add flags of 2nd part
|
||||
if rfRelRow in f then Include(AFlags, rfRelRow2);
|
||||
|
Reference in New Issue
Block a user