WinBinder Manual/wb get selected
From wiki.swiftlytilting.com
Returns the selected state of one or more items
[edit]
Syntax
mixed wb_get_selected (int wbobject)
[edit]
Returns
Returns a value or array with the indices or identifiers of the selected elements or items in wbobject, depending on class.
| 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(). | |
[edit]

