Constraint_Set
See Also: Constrain
Purpose
To allow groups of constraints to be created and used.
The DataDictionary class provides superior functionality that replaces the need for this command.
Syntax
Constraint_Set [{integer}] [Clear | Delete]
If {integer} is not specified, it will be considered 1.
What it Does
The Constraint_Set command sets the active constraint set. If the constraint set does not exist, a new one is created. Otherwise, the constraints set the last time the named constraint set was in effect now become the current constraint set. It remains in effect until the next Constraint_Set command.
Since any open database file may be addressed by constraint commands in a constraint set, constraints may be included within a single constraint set as long as they do not conflict. Only use multiple constraint sets if necessary.
-
Constraint_Set {integer} Clearremoves all constraints and find-status from the current constraint set, and leaves{integer}in effect as the current constraint set. This is normally used to reset the constraints for a particular set. -
Constraint_Set {integer} Deleteremoves the identified constraint set. If{integer}is the current constraint set, no constraint set will be active after this command executes until a newConstraint_Setis executed.
There is no need for the constraint set identifiers assigned to be contiguous or in any particular order. You may use any unique number (such as an object ID) to refer to a constraint set.