Navigation: thinBasic Modules > Core > Array functions > ARRAY SUM |
|
Description
Sum all array elements returning result operation. Array can be any numeric or even string type. Conversion will take care automatically.
Syntax
n = ARRAY SUM ArrayVariable([StartIndex]) [FOR nElements]
Returns
Numeric
Parameters
Name |
Type |
Optional |
Meaning |
ArrayVariable |
No |
Name of a declared and already dimensioned array. |
|
StartIndex |
Number |
Yes |
The element index inside the array from which to start. If omitted, 1 is assumed |
nElements |
Number |
Yes |
Number of elements to use starting from StartIndex. If omitted, end of the array is assumed. |
Remarks
Restrictions
See also
Examples
© 2004-2008 thinBasic. All rights reserved. | Version 1.7.0.0 | Web Site: http://www.thinbasic.com |