« on: November 20, 2017, 12:37:11 am »
Hi there,
I'm having some problems with fpReport. I cannot compile 2 of the 3 fcl-report demos and the lcldemo because of some lines of code in rtgrouping.pas
{*** variables ***}
rpt.Variables.AddExprVariable('population_in_M', 'sum(StrToFloat(population) / 1000000)', rtFloat);
rpt.Variables.AddExprVariable('grp_sum_population', 'sum(StrToFloat(population))', rtFloat, rtGroup, GroupHeader);
rpt.Variables.AddExprVariable('grp_sum_population_in_M', 'sum(StrToFloat(population) / 1000000)', rtFloat, rtGroup, GroupHeader);
rpt.Variables.AddExprVariable('sum_population', 'sum(StrToFloat(population))', rtFloat);
rpt.Variables.AddExprVariable('sum_population_in_M', 'sum(StrToFloat(population) / 1000000)', rtFloat);
The errors are shown in the screenshot below.
Thanks for your assistance.
JD
« Last Edit: November 20, 2017, 12:39:36 am by JD »
Logged
Windows - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe),
Linux Mint - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe)
mORMot; Zeos 8; SQLite, PostgreSQL & MariaDB; VirtualTreeView