4D v14.3ARRAY OBJECT |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v14.3
ARRAY OBJECT
ARRAY OBJECT
The ARRAY OBJECT command creates and/or resizes an array of language Object type elements in memory. The arrayName parameter is the name of the array. You can use any name that conforms to 4D conventions. The size parameter is the number of array elements. The size2 parameter is optional. If you pass it, this command creates a two-dimensional array. In this case, size specifies the number of rows and size2 the number of columns in each array. Each row in a two-dimensional array can be processed both as an element and an array. This means that when you work with the first dimension of a two-dimensional array, you can insert and remove entire arrays using other commands in the "Arrays" theme. When you apply the ARRAY OBJECT command to an existing array:
Creation of a process array of 100 Object-type elements: ARRAY OBJECT(arrObjects;100) Creation of a local array of 100 rows each containing 50 Object-type elements: ARRAY OBJECT($arrObjects;100;50) Creation and filling of a local object array: C_OBJECT($Children;$ref_richard;$ref_susan;$ref_james) |
PROPERTIES
Product: 4D
HISTORY
SEE ALSO
C_OBJECT ARTICLE USAGE
4D Language Reference ( 4D v14 R3) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||