COPY ARRAY

4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next

version 3


COPY ARRAY (source; destination)

ParameterTypeDescription
sourceArrayArray from which to copy
destinationArrayArray to which to copy

Description

The COPY ARRAY command creates or overwrites the destination array destination with the exact contents, size, and type of the source array source.

The source and destination arrays can be local, process, or interprocess arrays. When copying arrays, the scope of the array does not matter.

Example

The following example fills the array named C. It then creates a new array, named D, of the same size as C and with the same contents:

   ALL RECORDS ([People])  ` Select all records in People  
   SELECTION TO ARRAY ([People]Company; C)  ` Move company field data into array C 
   COPY ARRAY (C; D)  ` Copy the array C to the array D 

4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next