Selects one or more items of a control.
bool wb_set_selected (int control, mixed items [, bool selected])
| Class of control | Action |
|---|---|
| ComboBox | Selects the specified item. |
| ListBox | Selects the specified item. |
| ListView | Adds or removes the specified items from the current selection. ¹ |
| Menu | Selects the specified menu item and unselects all other items in the menu. ¹ |
| TabControl | Changes the current tab to the specified one. |
| TreeView | Changes the selected node to the specified node. |
| ¹ Compare with <winterpostwiki>wb_set_value</winterpostwiki>(). | |
Returns TRUE on success or FALSE if an error occurs.