select in list-box%
Selects or deselects an item. For selection in a single-selection list
box, if a different choice is currently selected, it is automatically
deselected. For selection in a multiple-selection list box, other
selections are preserved, unlike
set-selection.
A list box's selection can be changed by the user clicking the control, and such changes do not go through this method; use the control callback procedure (provided as an initialization argument) to monitor selection changes.
The control's callback procedure is not invoked.
(-> voidsenda-list-boxselectnselect?)
n: exact non-negative integer
select?=#t: booleanIf
select?is#f, the item indexed bynis deselected; otherwise it is selected. List box items are indexed from0. Ifnis equal to or larger than the number of choices, anexn:fail:contractexception is raised.