bool wb_set_value (int control, mixed value [, int item])
Sets one or more values of a control or control item. Returns
TRUE
on success or FALSE
if an error occurs.
See the following table.
Class |
What it does |
Type |
---|---|---|
Sets the selected date of the control. The value must be a valid Unix timestamp. |
integer |
|
Sets the checked state of the control. |
bool |
|
Stores an integer into the specified item or into the selected item if item is empty or -1. |
integer |
|
Sets the text to the integer specified. |
integer |
|
The control integer value. ¹ |
integer |
|
Sets the checked state of the control. |
bool |
|
Sets the text to the integer specified. |
integer |
|
Stores an integer into the specified item or into the selected item if item is -1 or empty. |
array |
|
Sets the checked state of the row (or array of rows) specified by item. ² |
array |
|
Sets the checked state of the menu item specified. ² |
bool |
|
Sets the checked state of the control. |
bool |
|
Sets the checked state of the control. |
bool |
|
Sets the text to the integer specified. |
integer |
|
The control position. ¹ |
integer |
|
The control position. ¹ |
integer |
|
The control integer value. ¹ |
integer |
|
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 wb_set_selected().
wb_get_value
wb_set_range
wb_set_selected
Control functions