4D v14.3

CREATE SET

Home

 
4D v14.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

 
PROPERTIES 

Product: 4D
Theme: Sets
Number: 116

 
HISTORY 

Created: < 4D v6

 
SEE ALSO 

CLEAR SET
CREATE EMPTY SET
Identifiers

 
ARTICLE USAGE

4D Language Reference ( 4D v12.4)
4D Language Reference ( 4D v11 SQL Release 6)
4D Language Reference ( 4D v14 R3)
4D Language Reference ( 4D v14 R2)
4D Language Reference ( 4D v13.5)
4D Language Reference ( 4D v14.3)
4D Language Reference ( 4D v14 R4)