wb_get_selected

mixed wb_get_selected (int wbobject)

Returns a value or array with the indices or identifiers of the selected elements or items in wbobject.

What it retrieves for each class

See the following table.

Class

What it retrieves

ComboBox

The index of the currently selected item.

ListBox

The index of the currently selected item.

ListView

An array with the indices of the selected items. ¹

TabControl

The index of the selected tab page.

TreeView

The handle of the currently selected node.

Window

0 (zero).

Other controls

0 (zero).

¹ Compare with wb_get_value().

See also

wb_get_value
wb_get_text
wb_set_selected
Control functions