DlgComboBox.RemoveItem

DlgComboBox.RemoveItem ( 

number ControlID,

number Index )

Description

Removes an item from a combo box control.

Note: This action will only work if called from a screen's events and if the named control is on the current screen.

Parameters

ControlID

(number) The numeric ID of the combo box control you want to remove an item from.

Index

(number) The index (line number) of the item to remove from the combo box. The first item in the list has an index of 1. You can use an index of -1 to remove all items from the list.

Returns

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

See also:  Related Actions