SetInvert()

Summary

Selects all features that are not part of another selection set.

Syntax

n = SetInvert(string set_name, string input_set)

Argument Contents
set_name The set to be created
input_set The set to invert

Returns

The number of elements in the set.

Notes

  • If the set does not already exist, it is created. If it already exists, the contents of the set are replaced.

  • Set_name and input_set can be the same set. In this case, input_set is replaced with the inverted version.

  • All selection commands operate on the current layer.

Example

n = SetInvert("Not High Income", "High Income")

Error Codes

Error Type Meaning
Error The set name is invalid or the input set is invalid
NotFound The input set cannot be found

See Also

Function Summary
CreateSet() Creates a new, empty set on the current view
IsMember() Tests whether a record is a member of a selection set
SetAND() Selects features that are in all of several input selection sets
SetOR() Selects features in any of several input sets
SetXOR() Selects features that are in only one of several selection sets