CopyArray (Function)
The CopyArray function copies a user-specified number of elements from a source array to a destination array and returns the modified destination array by reference (see parameter DestinationArray).
Syntax
CopyArray(SourceArray, SourceElement, DestinationArray, DestinationElement, NumElemToCopy)
Returns (Integer)
Copied elements are returned by reference using the DestinationArray parameter. This function always returns a value of 1.
Parameters
| Name | Type | Description |
| SourceArray | Numeric Array | Specifies the name of an array from which the elements are to be copied. |
| SourceElement | Numeric | Sets the index of the first element in the source array to be copied. |
| DestinationArray | Numeric ArrayRef | Specifies the name of an array to which the elements are to be copied. Modified array available by reference. |
| DestinationElement | Numeric | Sets the index of the first element in the destination array to receive copied values. |
| NumElemToCopy | Numeric | Sets the number of elements to be copied. |