Home Search

DriveWorks Pro 22
SumTableColumn

Send Feedback

SumTableColumn

Returns the sum of the values in the specified column of the specified table (the values in the first row are treated as header values and are included).

Syntax

SumTableColumn([Table or Table Name], [Column Index Number])

Where:

Table or Table Name is the name of the Table that contains the column.

Column Index Number is the index number of the column to sum.

Examples

Rule

Meaning
SumTableColumn(DWLookupData,2)Will add all the values in column 2 of the Data table.

Note

The name of any table added to DriveWorks will be DWLookup followed by the name of the table as it appears in the define tables task.

DriveWorks also treats Child Specification List controls as tables. To refer to this type of table use DWSubResults followed by the name of the Child Specification list control.