UnselectRecord()
Summary
Removes the current record from a selection set.
Syntax
n_selected = UnselectRecord(string set_name)
| Argument | Contents |
|---|---|
| set_name | The name of the selection set |
Returns
An integer that indicates the number of records in the selection set.
Notes
-
All selection commands operate on the current layer.
-
Use SetRecord(), LocateRecord(), and other functions to set the current record.
Example
SelectAll("Chosen States")
rh = LocateRecord("States|", "Name", {"Alaska"}, "True")
UnselectRecord("Chosen States")
rh = LocateRecord("States|", "Name", {"Massachusetts"}, "True")
UnselectRecord("Chosen States")
Error Codes
| Error Type | Meaning |
|---|---|
| Error | The set name is invalid |
See Also
| Function | Summary |
|---|---|
| SelectRecord() | Adds the current record to a selection set |