arraynumerictotal
INPUTARRAY
,
SEP
,
NUMERICTOTAL

The arraynumerictotal statement totals all the numeric elements of a text array.


Parameters

This statement has three parameters:

inputarray – The original numeric text array.

sep – The separator character or characters used in this array.

numerictotal – The field or variable that will hold the total value of all the numeric array elements.


Description

This statement totals all the numeric elements of a text array. Here is an example that will add up the values of all the elements in the array GroupMembers and assigns the total value to the variable GroupTotal.

local GroupMembers, GroupTotal
GroupMembers = "14 52 83 22 91 5 44 182 64"
arraynumerictotal GroupMembers," ",GroupTotal
message GroupTotal

The message will be 557.


See Also


History

VersionStatusNotes
10.0UpdatedCarried over from Panorama 6.0 but more than one character is now allowed for use as the separator parameter