Selected

[property icon] Selected

Select this listbox item

Boolean property

Applies to: ListItem

Introduced in KCML version 5.03


>

Selected

This Boolean object property can be used to select (TRUE) or deselect (FALSE) the listbox item object to which it is applied e.g. this program deselects the selected items in a listbox.

 LOCAL DIM OBJECT c, OBJECT n
 OBJECT c = .listControl1.SelectedFirst
 WHILE OBJECT c <> NULL DO
    c.Selected = FALSE
    OBJECT c = c.SelectedNext
  WEND

See also

ListItem methods, properties and events.