SetAND()

Summary

Selects features that are in all of several input selection sets.

Syntax

n = SetAND(string set_name, array input_sets)

Argument Contents
set_name The name of the set to be created
input_sets The list of sets to search

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.

  • All selection commands operate on the current layer.

Examples

n = SetAND("Rich Men", {"Rich Persons", "Males"})
nrecs = SetAND("X", {"X", "Y", "Z"}) // X = X & Y & Z

Error Codes

Error Type Meaning
Error The set name is invalid or one of the input sets is invalid
NotFound One of the input sets is not found

See Also

Function Summary
IsMember() Tests whether a record is a member of a selection set
SetInvert() Selects all features that are not part of another selection set
SetOR() Selects features that are in any of several input selection sets
SetXOR() Selects features that are in only one of several selection sets