Skip to main content

Module choice

Module choice 

Source
Expand description

Dropdown and listbox implementation (B.4).

Enums§

ChoiceKind
Sub-kind of a choice (/Ch) field, derived from its flags word.

Functions§

choice_kind
Determine choice sub-kind from flags.
get_options
Get the list of available options.
get_selection
Get the currently selected value(s).
selected_index
Get the index of the first selected option, if any.
set_multi_selection
Set multiple selections for a multi-select list box. Returns false if read-only or not multi-select.
set_selection
Set the selection for a single-select choice field. For non-editable combos, value must match an option. Returns false if read-only or invalid.