Skip to content

Sum_SubTotal - WinReport

Returns the value of the subtotal for the passed iTotal, but does not zero the subtotal accumulator

Type: Function
Return Data Type: Number

Parameters

Parameter Type Description
iTotal Integer A developer defined subtotal index

Syntax

Function Sum_SubTotal Integer iTotal Returns Number

Call Example

Get Sum_SubTotal iTotal to NumberVariable

Description

The Sum_subtotal function returns the value of the subtotal for the passed iTotal, but does not zero the subtotal accumulator.The value for iTotal should be assigned by the developer. In a complex report, you may choose to name the iTotal values you wish to use with mnemonics that identify the columns or fields being subtotalled.

Return Value

Returns the value of the subtotal for the passed iTotal