Command Prompt for Windows




Command CBDELETE

Function:

Delete a string from the specified location in the list box of a combo box or clear the contents of a combo box.

Syntax:

CBDELETE dlg_id id [index]
dlg_idSpecifies the identifier of the dialog box that contains the combo box.
idSpecifies the identifier of the combo box.
indexSpecifies the index of the string to remove from the list box of a combo box.

Note:

When parameter index is not specified then all the strings contained in the list box of the specified combo box is removed and the edit field of the combo box is cleared.

Indexes are zero based, that is, the first string in the list box of a combo box is at index 0, the second string is at index 1 and so on.

Also see command CBADD and CBINSERT.