Sets the value(s) and/or the minimum and maximum range of a control
bool wb_set_value (int control, mixed value [, int item])
| Class | Action taken | Type of value |
|---|---|---|
| <winterpostwiki>Calendar</winterpostwiki> | Sets the selected date of the control. The value must be a valid Unix timestamp. | integer |
| <winterpostwiki>CheckBox</winterpostwiki> | Sets the checked state of the control. | bool |
| <winterpostwiki>ComboBox</winterpostwiki> | Stores an integer into the specified item or into the selected item if item is empty or -1. | integer |
| <winterpostwiki>EditBox</winterpostwiki> | Sets the text to the integer specified. | integer |
| <winterpostwiki>Gauge</winterpostwiki> | The control integer value. ¹ | integer |
| <winterpostwiki>ImageButton</winterpostwiki> | Sets the checked state of the control. | bool |
| <winterpostwiki>Label</winterpostwiki> | Sets the text to the integer specified. | integer |
| <winterpostwiki>ListBox</winterpostwiki> | Stores an integer into the specified item or into the selected item if item is -1 or empty. | array |
| <winterpostwiki>ListView</winterpostwiki> | Sets the checked state of the row (or array of rows) specified by item. ² | array |
| <winterpostwiki>Menu</winterpostwiki> | Sets the checked state of the menu item specified. ² | bool |
| <winterpostwiki>PushButton</winterpostwiki> | Sets the checked state of the control. | bool |
| <winterpostwiki>RadioButton</winterpostwiki> | Sets the checked state of the control. | bool |
| <winterpostwiki>RTFEditBox</winterpostwiki> | Sets the text to the integer specified. | integer |
| <winterpostwiki>ScrollBar</winterpostwiki> | The control position. ¹ | integer |
| <winterpostwiki>Slider</winterpostwiki> | The control position. ¹ | integer |
| <winterpostwiki>Spinner</winterpostwiki> | The control integer value. ¹ | integer |
| <winterpostwiki>TreeView</winterpostwiki> | Stores an integer, string or float value into the specified node or into the selected node if item is empty or -1. | mixed |
| ¹ The control range can be set using wb_set_range().
² Compare with <winterpostwiki>wb_set_selected</winterpostwiki>(). | ||
Returns TRUE on success or FALSE if an error occurs.