Skip to main content
Version: 20 R7 BETA

CREATE SET

CREATE SET ( {aTable ;} set )

ParameterTypeDescription
aTableTableTable for which to create a set from the selection, or Default table, if omitted
setTextName of the new set

Description

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