Skip to content

Add_SubTotal - WinReport

Adds the value of nData to the subtotal for the passed iCounter

Type: Procedure

Parameters

Parameter Type Description
iCounter Integer A developer defined subtotal index
nData Number The value to be added to the subtotal

Syntax

Procedure Add_SubTotal Integer iCounter Number nData

Call Example

Send Add_SubTotal iCounter nData

Description

The Add_subtotal procedure adds the value of nData to the subtotal for the passed iCounter. The value for iCounter should be assigned by the developer. In a complex report, you may choose to name the iCounter values you wish to use with mnemonics that identify the columns or fields being subtotalled.