Difference between revisions of "ASUM()"

From Lianjapedia
Jump to: navigation, search
 
Line 23: Line 23:
 
[[Category:Functions]]
 
[[Category:Functions]]
 
[[Category:Array Processing Functions]]
 
[[Category:Array Processing Functions]]
 +
[[Category:Lianja VFP Extensions]]
 +
[[Category:VFP Function Extensions]]

Latest revision as of 06:20, 10 December 2012

Purpose

Function to calculate the sum of element values in an array

Syntax

ASUM(<array>)

See Also

AADD(), AAVERAGE(), ACOPY(), ADEL(), ADESC(), ADIR(), AELEMENT(), AFIELDS(), AFILL(), AINS(), ALEN(), AMAX(), AMIN(), APPEND FROM ARRAY, ARRAY(), ASCAN(), ASIZE(), ASORT(), ASTORE(), ASTRING(), ASUBSCRIPT(), COPY TO ARRAY, DECLARE, DIMENSION, GATHER, IN_ARRAY(), IS_ARRAY(), LOCAL, PRIVATE, PUBLIC, RELEASE, RESTORE, SAVE, SCATTER

Description

The ASUM() function calculates the sum of all the numeric elements in the specified <array> and returns the total.

Example

use payroll
declare aNumber[reccount(),1]
copy to array aNumber fields pay_amount
? asum(aNumber)
 127641.73