Command Prompt for Windows




Command LBDELETE

Function:

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

Syntax:

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

Note:

When parameter index is not specified then all the strings contained in the list box is removed.

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

Also see command LBADD and LBINSERT.