SetXOR()
Summary
Selects features that are in only one of several selection sets.
Syntax
n = SetXOR(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.
-
SetXOR() fills the new set with records that are in any one of the input sets, but not in more than one.
-
All selection commands operate on the current layer.
Examples
n = SetXOR("Rich or Male-not Both", {"Rich Persons", "Males"})
nrecs = SetXOR("X", {"X", "Y", "Z"}) // X = in one of X or Y or 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 does not exist |
See Also
| Function | Summary |
|---|---|
| IsMember() | Tests whether a record is a member of a selection set |
| SetAND() | Selects features that are in all of several input selection sets |
| SetInvert() | Selects all features that are not part of another selection set |
| SetOR() | Selects features in any of several input sets |