4D v16.3

CREATE SET

Home

 
4D v16.3
CREATE SET

CREATE SET 


 

CREATE SET ( {aTable ;} set ) 
Parameter Type   Description
aTable  Table in Table for which to create a set from the selection, or Default table, if omitted
set  String in Name of the new set

CREATE SET creates a new set, set, for aTable, and places the current selection in set. The current record pointer for the table is saved with set. If set is used with USE SET, the current selection and current record are restored. As with all sets, there is no sorted order; when set is used, the default order is used. If a set with the same name already exists, the existing set is cleared by the new set.

Example  

The following example creates a set after doing a search, in order to save the set to disk:

 QUERY([People]` Let the user do a search
 CREATE SET([People];"SearchSet") ` Create a new set
 SAVE SET("SearchSet";"MySearch") ` Save the set on disk



See also 

CLEAR SET
CREATE EMPTY SET
Identifiers

 
PROPERTIES 

Product: 4D
Theme: Sets
Number: 116

This command can be run in preemptive processes

 
HISTORY 

Created: < 4D v6

 
ARTICLE USAGE

4D Language Reference ( 4D v16)
4D Language Reference ( 4D v16.1)
4D Language Reference ( 4D v16.2)
4D Language Reference ( 4D v16.3)