4D v13.4

CREATE SET

Home

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

 
INDEX

Alphabetical list of commands

 
HISTORY 

Created: < 4D v6

 
SEE ALSO 

CLEAR SET
CREATE EMPTY SET
Identifiers