DlgListBox.DeleteItem

number DlgListBox.DeleteItem ( 

number ControlID,

number Index )

Example 1

LastSelected = DlgListBox.DeleteItem(CTRL_LIST_BOX, 3);

Removes the third item from the list box control with control id CTRL_LIST_BOX and stores the last selected line number in the variable LastSelected.

Example 2

DlgListBox.DeleteItem(ControlID, -1);

Removes all items from the list box control whose ID is specified in the variable ControlID.

Note: Even though no return variable is specified, this action still functions correctly.

See also:  Related Actions