SelectedFirst

[property icon] SelectedFirst

Get first selected item object

Read-only Runtime-only OBJECT reference property

Applies to: ComboBox , Grid , GridCell , KCMLEdit , List Box

Introduced in KCML version 5.03


>

SelectedFirst

This property returns an listitem object reference for the first selected entry in a listbox. It will be NULL if there are no selected items. The next selected item can then be found by using the SelectedNext property on this object e.g.

 count = 0
 OBJECT c = .listControl1.SelectedFirst
 WHILE OBJECT c <> NULL DO
        count++
    OBJECT c = c.SelectedNext
 WEND

See also

ComboBox methods, properties and events. Grid methods, properties and events. GridCell methods, properties and events. KCMLEdit methods, properties and events. List Box methods, properties and events.