Command Prompt for Windows



Insert a string at a specified locating in a list box.


LBINSERT dlg_id id index "string"
dlg_idSpecifies the identifier of the dialog box that contains the list box.
idSpecifies the identifier of the list box.
indexSpecifies the index to insert the string into.
stringSpecifies a sequence of characters to insert into the list box.


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.

Unlike command LBADD, command LBINSERT does not cause a list with a Sort style to be sorted.

Also see command LBADD and LBDELETE.