4D v14.3

ACCUMULATE

Home

 
4D v14.3
ACCUMULATE

ACCUMULATE 


 

ACCUMULATE ( data {; data2 ; ... ; dataN} ) 
Parameter Type   Description
data  Field, Variable in Numeric field or variable on which to accumulate

ACCUMULATE specifies the fields or variables to be accumulated during a form report performed using PRINT SELECTION.

You must execute BREAK LEVEL and ACCUMULATE before every report for which you want to do break processing. These commands activate break processing for a report. See the explanation for the Subtotal command.

Use ACCUMULATE when you want to include subtotals for numeric fields or variables in a form report. ACCUMULATE tells 4D to store subtotals for each of the Data arguments. The subtotals are accumulated for each break level specified with the Subtotal command.

Execute ACCUMULATE before printing the report with PRINT SELECTION.

Use the PRINT SELECTION function in the form method or an object method to return the subtotal of one of the data arguments.

Example  

See the example for the BREAK LEVEL command.

 
PROPERTIES 

Product: 4D
Theme: Printing
Number: 303

Not for server

 
HISTORY 

Modified: 4D v11 SQL

 
SEE ALSO 

BREAK LEVEL
ORDER BY
PRINT SELECTION
Subtotal

 
ARTICLE USAGE

4D Language Reference ( 4D v12.4)
4D Language Reference ( 4D v11 SQL Release 6)
4D Language Reference ( 4D v14 R3)
4D Language Reference ( 4D v14 R2)
4D Language Reference ( 4D v13.5)
4D Language Reference ( 4D v14.3)
4D Language Reference ( 4D v14 R4)