CREATE SET

4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next

version 3


CREATE SET ({table; }set)

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

Description

CREATE SET creates a new set, set, for table, 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.


4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next