SelectedFirst
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
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