Important: The information in this document is obsolete and should not be used for new development.
LGetSelect
You can use theLGetSelectfunction to get information about which cells are selected.
FUNCTION LGetSelect (next: Boolean; VAR theCell: Cell; lHandle: ListHandle): Boolean;
next- A Boolean value that indicates whether
LGetSelectshould check only the cell specified by the parametertheCell(next = FALSE), or whether it should try to find the next selected cell (next = TRUE).theCell- On input, specifies the first cell whose selection status should be checked. If
nextisTRUE, then this parameter on output indicates the next selected cell greater than or equal to the cell specified on input. Otherwise, this parameter remains unchanged.lHandle- The list in which the selection is being checked.
DESCRIPTION
The behavior of theLGetSelectfunction depends on the value specified in thenextparameter.If
nextisTRUE, thenLGetSelectsearches the list for the first selected cell beginning at the cell specified bytheCell. (In particular,LGetSelectfirst checks cells in rowtheCell.v, and then cells in the next row, and so on.) If it finds a selected cell,LGetSelectreturnsTRUEand sets the parametertheCellto the coordinates of the selected cell. If it does not find a selected cell,LGetSelectreturnsFALSE.If
nextisFALSE, thenLGetSelectchecks only the cell specified by the parametertheCell. If the cell is selected,LGetSelectreturnsTRUE. Otherwise, it returnsFALSE.SPECIAL CONSIDERATIONS
You should not call theLGetSelectfunction from within an interrupt, such as in a completion routine or VBL task.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theLGetSelectfunction are
Trap macro Selector _Pack0 $003C SEE ALSO
For examples that determine which items are selected in a list, see "Working With List Selections" beginning on page 4-25.