bool wb_delete_items (int control [, int items])
Deletes an item, a range of items, or all items from a control. Returns
TRUE on success or FALSE if an error occurs.
This function applies to the following control classes: ListBox, ComboBox, ListView and TreeView.
See the following table.
| items |
What it does |
|---|---|
|
integer |
Deletes the specified item. |
|
array of integers |
Deletes the specified items. |
|
zero |
Deletes item zero. |
|
null |
Deletes all items. |
NOTE: if items is an array, its
elements must be sorted in reverse order so that item indices are maintained.
Use PHP function rsort() to do this.
wb_create_items
Control functions