CodeCharge Studio

TotalFunction Run-Time Property (ASP)

Applies to

ReportLabel Control,

Type

string

Access

read

Syntax

object.TotalFunction

Description

Specifies the function to be used if the value is to be auto-calculated. The default value is empty string.
Type Description
(none) No function will be used.
Sum  The report label value will be calculated as the sum of previous row values.
Count  If the Control Source is empty the value will be calculated as the count of previous data rows. Otherwise the value will be calculated as the count of previous data rows with non-empty values.
Min  The value will be calculated as the minimum of previous row values.
Max  The value will be calculated as the maximum of previous row values.
Avg  The value will be calculated as the average of non-empty values from previous rows.

Example

If ReportLabel1.TotalFunction = "Sum" Then _
	ReportLabel1.Text "<b>" & ReportLabel1.Text & "</b>"
	

See also

IsPercent property


On-line, printable versions and updates