Operating values of two variables
Hi folks,
I'm stuck with and (I believe) newbie related topic. I'm using the code showed below to add variables to the report from code:
I need to create a sum operation in the report and I can't see the correct sintax.
How can I tell Fastreports that the value I need to represent is the sum of Var25t and Var26t?
Im using <[Var25t]+[Var26t]> and dimilar sintax but without success. Any hint?
Note: Using Fastreports in delphi .Net
Thanks
I'm stuck with and (I believe) newbie related topic. I'm using the code showed below to add variables to the report from code:
Report.AddVariable('R01','Var25t',c1trueDBgrid4.Item[I,25]);
Report.AddVariable('R01','Var26t',c1trueDBgrid4.Item[I,26]);
I need to create a sum operation in the report and I can't see the correct sintax.
How can I tell Fastreports that the value I need to represent is the sum of Var25t and Var26t?
Im using <[Var25t]+[Var26t]> and dimilar sintax but without success. Any hint?
Note: Using Fastreports in delphi .Net
Thanks
Comments
For any people interested...
Memo123.text:=VarToStr(StrToFloat(<Var23p2>)+StrToFloat(<Var23p3>))
used in Memo123OnBeforePrint Event.
There is an easy way? without using Pascalscript, directly in memo expression perhaps?
Thanks anyway
make sure allow expressions is turned on for the memo and
use [Var25t]+[Var26t]
set display format of memo as desired.