Copies one or more elements in an array to a new array.

COPYARRAY(NewArray, Array, Position[, Length])

Parameters

NewArray

Type: Array

The array to copy to; the destination array.

Array

Type: Array

The array to copy from; the source array.

Position

Type: Integer

The position of the first array element to copy.

Length

Type: Integer

The number of array elements to copy. If you do not specify Length, all array elements are copied from Position to the last element. Use this equation to determine valid values:

1 =< LENGTH =< MAXLEN(ARRAY) - POSITION + 1

Expand imageRemarks

Expand imageExample

Expand imageSee Also