Command Prompt for Windows




Command LBADD

Function:

Add a string to a list box or return the number of strings contained in a list box.

Syntax:

LBADD dlg_id id ["string"]
dlg_idSpecifies the identifier of the dialog box that contains the list box.
idSpecifies the identifier of the list box.
stringSpecifies a sequence of characters to add to the list box.

Note:

When parameter "string" is not specified then the number of strings contained in the list box is returned in the environment variable LBADD.

If the list box does not have the Sort style, the specified string is added to the end of the list. Otherwise, the string is inserted into the list, and the list is sorted.

Also see command LBINSERT and LBDELETE.