Go to Contents
Previous
Page
Next
Page
Contents > Functions reference (alphabetical list) > Get functions > Get(SortState) function

Get(SortState) function
Format

Get(SortState)
Parameter
None
Data type returned
number
Description
Returns 0 if the records in the active table are not sorted.
Returns 1 if the records in the active table are sorted.
Returns 2 if the records in the active table are partially sorted (semi-sorted).
Each window has its own sort state.
Notes
The records in a sorted table can become semi-sorted if you add a new record, or if you change the contents of a field that was involved in the sorting.
If you specify the context for the current calculation, this function will be evaluated based on that context; otherwise, it will be evaluated based on the context of the current window.
Note   See Solving calculations on a host machine for information about running scripts in client/server and peer-to-peer environments.
Example
Returns 1 when the records in the active table are sorted.
Related topics
Functions reference (category list)
Functions reference (alphabetical list)
About formulas
About functions
Defining calculation fields
Using operators in formulas

Contents > Functions reference (alphabetical list) > Get functions > Get(SortState) function
Previous
Page
Next
Page