mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-13 16:49:07 +02:00
LazReport, added option to ignore undefined symbols, from Luiz Americo, issue #21683
git-svn-id: trunk@36720 -
This commit is contained in:
parent
6eb348b717
commit
34e6e9ce12
@ -79,7 +79,7 @@ type
|
||||
TfrFrameBorders = set of TfrFrameBorder;
|
||||
TfrFrameStyle = (frsSolid,frsDash, frsDot, frsDashDot, frsDashDotDot,frsDouble);
|
||||
TfrPageType = (ptReport, ptDialog);
|
||||
TfrReportOption = (roIgnoreFieldNotFound);
|
||||
TfrReportOption = (roIgnoreFieldNotFound, roIgnoreSymbolNotFound);
|
||||
TfrReportOptions = set of TfrReportOption;
|
||||
|
||||
TfrView = class;
|
||||
@ -8205,7 +8205,13 @@ begin
|
||||
aValue:= frParser.Calc(s);
|
||||
SubValue := '';
|
||||
end
|
||||
else raise(EParserError.Create('Undefined symbol: ' + SubValue));
|
||||
else
|
||||
begin
|
||||
if roIgnoreSymbolNotFound in FReportOptions then
|
||||
aValue := Null
|
||||
else
|
||||
raise(EParserError.Create('Undefined symbol: ' + SubValue));
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user