4D v13.4Two-dimensional Arrays |
||
|
4D v13.4
Two-dimensional Arrays
Two-dimensional Arrays
Each of the array declaration commands can create or resize one-dimensional or two-dimensional arrays. Example: ARRAY TEXT(atTopics;100;50) ` Creates a text array composed of 100 rows of 50 columns Two-dimensional arrays are essentially language objects; you can neither display nor print them. In the previous example:
In the following example, a pointer to each field of each table in the database is stored in a two-dimensional array: C_LONGINT($vlLastTable;$vlLastField) Provided that this two-dimensional array has been initialized, you can obtain the pointers to the fields for a particular table in the following way: ` Get the pointers to the fields for the table currently displayed at the screen: Note: As this example suggests, rows of a two-dimensional arrays can be the same size or different sizes. |
PROPERTIES
Product: 4D SEE ALSO |