|
EK RTF report components for .Net
|
SUM(source, destination [, noreset]) - totals data field or report variable.
source - data field or report variable to sum.
destination - report variable to store result of the function.
noreset - use this option if you don't want to initialize destination variable with zero value. New values of the source field will be added to the previous result of the function.
Example of a report:
\scan(a)\
\a:number\ - \a:value\
\endscan, sum(a:value,s_value)\
total: \s_value\
\scan(b)\
\b:number\ - \b:value\
\endscan, sum(b:value,s_value,noreset)\
All totals: \s_value\
Result may be like this:
1 - 5
2 - 10
3 - 4
total: 19
1 - 10
All totals: 29
|
Copyright (c) 2007. All rights reserved.
|