dataarrayappend(
ARRAY
,
VALUE
)

The dataarrayappend( function appends one or more values to the end of an existing array.


Parameters

This function has two parameters:

array – the initial array to be modified.

value – value to add to the array (this parameter may be repeated if you want to append multiple values).


Description

This function appends one or more values to the end of an existing array. Suppose you have created a data array like this:

local myarray
myarray = dataarray("red","blue","orange")

You can use dataarrayappend( to add additional colors to the end of this array.

myarray = dataarrayappend(myarray,"green","silver")

The end result is an array with five elements: red, blue, orange, green and silver.


Error Messages

dataarrayappend( function: Invalid data array – The first parameter to this function must be a valid data array, created with dataarray(, importdataarray(, dataarraybuild(, etc.


See Also


History

VersionStatusNotes
10.0NewNew in this version.