Array.Copy

Parent Previous Next

Array.Copy.

Returns a new array object with a copied range of elements.


Syntax.


 Copy(Integer start, length) : Type[]

 


Arguments:


Both parameters may exceed the actual number of available items. If no items exist within the specified range, an empty array (not Null) is returned.


Example:


 Integer A[], B[] := [0, 1, 2, 3];

 A[] := B[].Copy(2, 5); //Now A[] ~ [2,3];