4D v13.4ARRAY TEXT |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v13.4
ARRAY TEXT
|
ARRAY TEXT ( arrayName ; size {; size2} ) | ||||||||
Parameter | Type | Description | ||||||
arrayName | Array |
![]() |
Name of the array | |||||
size | Longint |
![]() |
Number of elements in the array or Number of rows if size2 is specified | |||||
size2 | Longint |
![]() |
Number of columns in a two-dimensional array | |||||
The ARRAY TEXT command creates and/or resizes an array of Text elements in memory.
While applying ARRAY TEXT to an existing array:
This example creates a process array of 100 Text elements:
ARRAY TEXT(atValues;100)
This example creates a local array of 100 rows of 50 Text elements:
ARRAY TEXT($atValues;100;50)
This example creates an interprocess array of 50 Text elements and sets each element to the value “Element #” followed by its element number:
ARRAY TEXT(◊atValues;50)
For($vlElem;1;50)
◊atValues{$vlElem}:="Element #"+String($vlElem)
End for
Product: 4D
Theme: Arrays
Number:
222
Created: < 4D v6