4D v16.3ARRAY BOOLEAN |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v16.3
ARRAY BOOLEAN
ARRAY BOOLEAN
The ARRAY BOOLEAN command creates and/or resizes an array of Boolean elements in memory. The arrayName parameter is the name of the array. The size parameter is the number of elements in the array. The size2 parameter is optional; if size2 is specified, the command creates a two-dimensional array. In this case, size specifies the number of rows and size2 specifies the number of columns in each array. Each row in a two-dimensional array can be treated as both an element and an array. This means that while working with the first dimension of the array, you can use other array commands to insert and delete entire arrays in a two-dimensional array. While applying ARRAY BOOLEAN to an existing array:
Tip: In some contexts, an alternative to using Boolean arrays is using an Integer array where each element “means true” if different from zero and “means false” if equal to zero. This example creates a process array of 100 Boolean elements: ARRAY BOOLEAN(abValues;100) This example creates a local array of 100 rows of 50 Boolean elements: ARRAY BOOLEAN($abValues;100;50) This example creates an interprocess array of 50 Boolean elements and sets each even element to True: ARRAY BOOLEAN(◊abValues;50)
See also
|
PROPERTIES
Product: 4D HISTORY
Created: < 4D v6 ARTICLE USAGE
4D Language Reference ( 4D v16) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||