Skip to content

SubTotal - WinReport

Returns the value of the subtotal for the passed iTotal and zeroes the subtotal accumulator

Type: Function
Return Data Type: Number

Parameters

Parameter Type Description
iTotal Integer A developer defined subtotal index

Syntax

Function SubTotal Integer iTotal Returns Number

Call Example

Get SubTotal iTotal to NumberVariable

Description

The Subtotal function returns the value of the subtotal for the passed iTotal and zeroes 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