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