Command Prompt for Windows




Command CBADD

Function:

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

Syntax:

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

Note:

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

If the combo 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 CBINSERT and CBDELETE.