This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v20 R7
COPY ARRAY
|
COPY ARRAY ( source ; destination ) | ||||||||
Parameter | Type | Description | ||||||
source | Array |
![]() |
Array from which to copy | |||||
destination | Array |
![]() |
Array to which to copy | |||||
The COPY ARRAY command creates or overwrites the destination array destination with the exact contents, size, and type of the source array source.
Note: In case of numeric arrays of different types, the type of the destination array is kept.
The source and destination arrays can be local, process, or interprocess arrays. When copying arrays, the scope of the array does not matter.
Notes:
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
Product: 4D
Theme: Arrays
Number:
226
Created: < 4D v6
4D Language Reference ( 4D v20 R7)