WinXListBox_RemoveItem


remaining = WinXListBox_RemoveItem (hListBox, index)

Removes an item from a list box

Parameter Description
hListBox The handle to the list box to remove the item from
index The index of the item to remove

Returns

The number of items remaining in the list, or $$LB_ERR on error

Remarks

none

Examples

'remove the first item in the list
IF WinXListBox_RemoveItem (hLB, 0) = $$LB_ERR THEN PRINT "The list box must have been empty"

Related Links

WinXAddListBox
WinXListBox_AddItem