ListBox.DeleteItem

ListBox.DeleteItem ( 

string ObjectName,

number Index )

Description

Removes an item from a listbox object.

Parameters

ObjectName

(string) The name of the listbox object.

Index

(number) The index (or line number) of the item to remove from the listbox object.

Tip: You can use an index of -1 (or variable LB_ALLITEMS) to remove all items from the listbox.

Returns

Nothing. You can use Application.GetLastError to determine whether this action failed, and why.

See also:  Related Actions