SelectAll()
Summary
Selects all the records in the current view.
Changes
Optional options array added in Version 2019.
Syntax
n_selected = SelectAll(string set_name [, array options])
| Argument | Contents |
|---|---|
| set_name | The name of the selection set |
| Option | Type | Contents |
|---|---|---|
| Display | Boolean | "True" or "False" overriding the current setting; for more information, see SetSelectDisplay() |
| Auto Redraw | Boolean | "True" or "False" overriding the current setting; for more information, see SetSelectAutoRedraw() |
Returns
An integer indicating the number of records in the selection set.
Notes
-
The options array is an optional argument.
-
If the set does not already exist, SelectAll() creates it. If it already exists, the contents of the set are replaced.
-
SelectAll() displays a progress bar. To add a Cancel button to the progress bar, precede the function call with an "on escape" clause. For more information, see Error Handling.
-
All selection commands operate on the current layer.
Error Codes
| Error Type | Meaning |
|---|---|
| Error | The set name is invalid |
| Escape | The user clicked Cancel |
See Also
| Function | Summary |
|---|---|
| SelectNone() | Removes all records from a selection set |