Command group | Flag affected | Reversible | Execute on client | Platform(s) |
---|---|---|---|---|
List lines | YES | NO | NO | All |
AND selected and saved ([All lines]) {line-number (calculation)}
All lines | If specified, the command affects all the lines in the list |
This command performs a logical AND of the Saved selection with the Current selection. You can specify a particular line in the list by entering either a number or a calculation. The All lines option performs the AND for all lines of the current list.
To allow sophisticated manipulation of data via lists, a list can store two selection states for each line; the "Current" and the "Saved" selection. The Current and Saved selections have nothing to do with saving data on the disk; they are no more than labels for two sets of selections. The lists may be held in memory and never saved to disk: they will still have a Current and Saved selection state for each line but they will be lost if not saved. When a list is stored in the data file, both sets of selections are stored.
The list data structure contains the column definitions, the field values for each line of the list, the current selected status and saved selected status for each line, LIST.$line, LIST.$linecount and LIST.linemax.
The AND selected and saved command performs a logical AND on the saved and current state, and puts the result into the Current selection. Hence, for a particular line, if both the Current and Saved states are selected, the Current state remains selected, but if either or both states are deselected, the resulting Current state will become deselected.
Saved State | Current State | Resulting Current State |
---|---|---|
Selected | Selected | Selected |
Deselected | Selected | Deselected |
Selected | Deselected | Deselected |
Deselected | Deselected | Deselected |