FILEFLEX API REFERENCE



NAME
DBSum -- Add the value of a field across records

SYNTAX
DBSum(field-name)

CATEGORY
Performing Calculations

DESCRIPTION
To calculate the total of all of the numeric contents of a specific database field, use the FileFlex DBSum function. Supply the name of a numeric field and put the result into a container. Copy and paste the following line into your script to handle this task, making appropriate changes in the field and container names:

EXAMPLE
put DBSum("SALARY") into myPayroll

SEE ALSO
DBAverage

INTERNAL FUNCTION NUMBER
22