I must be doing something wrong here, but I'm having trouble getting expressions in scripts to work.
A := [B] + [C];
where all three variables are numeric. Works fine for string values.
The statement does not execute. when I look at variable A through a MessageBox it returns empty. Ive also tried:
A := [[B] + [C]]; and
A := SUM([B]+[C]);
A := [SUM([B]+[C])];
According to the free report booklet, section 6.2 The expression should work and Paragraph: Aggregate functions, SUM is supposed to work as well.
A little more background, this statement is implemented in the MasterDataBand1 script field. B and C are passed to the report frReport1GetValue statement. The variables are declared in the variable list in the report.
Also OS: Win7Pro-64 bit Lazarus: 1.2.4 FPC: 2.6.4 SVN: 45510 i386-win32-win32/win64
Right now I have it working in the program source. I would like to have it calculated in the report if I can.
Any ideas [where|what] Im [g|d]oing wrong?