Personal tools
From wiki.swiftlytilting.com
Jump to: navigation, search

WinBinder Manual/wb delete items

Deletes an item, a range of items, or all items from a control.

Contents

Syntax

bool wb_delete_items (int control [, int items])

Returns

Returns TRUE on success or FALSE if an error occurs.

Control classes

This function applies to the following control classes: ListBox, ComboBox, ListView and TreeView.

What it deletes

See the following table.

items What it does
integerDeletes the specified item.
array of integersDeletes the specified items.
zeroDeletes item zero.
nullDeletes 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.

See also

Winbinder Projects