4D v16.3Using the element zero of an array |
||
|
4D v16.3
Using the element zero of an array
Using the element zero of an array
An array always has an element zero. While element zero is not shown when an array supports a form object, there is no restriction(*) in using it with the language. One example of the use of element zero is the case of the combo box discussed in the Arrays and Form Objects section. Here is another example: you want to execute an action only when you click on an element other than the previously selected element. To do this, you must keep track of each selected element. One way to do this is to use a process variable in which you maintain the element number of the selected element. Another way is to use the element zero of the array: ` atNames scrollable area object method
See also
|
PROPERTIES
Product: 4D
HISTORY
ARTICLE USAGE
4D Language Reference ( 4D v16) |