Skip to main content
Version: 20 R7 BETA

QR GET TOTALS DATA

QR GET TOTALS DATA ( area ; colNum ; breakNum ; operator ; text )

ParameterTypeDescription
areaIntegerReference of the area
colNumIntegerColumn number
breakNumIntegerBreak number
operatorIntegerOperator value for the cell
textTextContents of the cell

This command is not thread-safe, it cannot be used in preemptive code.

Description

List Mode

The QR GET TOTALS DATA command retrieves the details of a specific break.

area is the reference of the Quick Report area.

colNum is the number of the column whose data will be retrieved.

breakNum is the number of the break whose data will be retrieved (subtotal or grand total). For a subtotal row, breakNum corresponds to the row number. For a grand total, breakNum is -3 (you can also use the qr grand total constant from the QR Rows for Properties theme).

operator returns the sum of all the operators present in the cell. You can use the constants of the QR Operators theme to process the returned value:

ConstantTypeValue
qr averageLongint2
qr countLongint16
qr maxLongint8
qr minLongint4
qr standard deviationLongint32
qr sumLongint1

If the value returned is 0, there is no operator.

text returns the text present in the cell.

Note: operator and text are mutually exclusive, so you either have a result returned through operator or through text.

Cross-table Mode

The QR GET TOTALS DATA command retrieves the details of a specific cell.

area is the reference of the Quick Report area.

colNum is the column number of the cell whose data is going to be retrieved.

breakNum is the row number of the cell whose data is going to be retrieved.

operator returns the sum of all the operators present in the cell. You can use the constants of the QR Operators theme to process the returned value (see above).

text returns the text in the cell.

Here is a depiction of how the parameters colNum and breakNum have to be combined in cross-table mode:

If you pass an invalid area number, the error -9850 will be generated.
If you pass an invalid colNum number, the error -9852 will be generated.
If you pass an invalid breakNum number, the error -9853 will be generated.

See also

QR SET TOTALS DATA