4D v16.3CREATE SET FROM ARRAY |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v16.3
CREATE SET FROM ARRAY
CREATE SET FROM ARRAY
The CREATE SET FROM ARRAY command creates setName from:
When you use this command and pass a Longint array in recordsArray, all the numbers in the array represent the list of record numbers that are in setName. If a number is invalid (for example, if a record has not been created), the error -10503 is generated. When you use this command and pass a Boolean array in recordsArray, the Nth element of the array indicates whether the "Nth" record is contained (True) or not (False) in setName. Usually, the number of elements in the array must equal the number of records in the table. If the array is smaller than the number of records, only the records defined by the array will be in the set. Note: With a Boolean array, this command uses the elements from 0 to N-1. If you do not pass the setName parameter or if you pass an empty string, the command will be applied to the Userset system set. In a Longint array, if a record number is invalid (record not created), the error -10503 is generated.
See also
BOOLEAN ARRAY FROM SET
|
PROPERTIES
Product: 4D HISTORY
Modified: 4D v6.7 ARTICLE USAGE
4D Language Reference ( 4D v16) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||