Add a string to a list box or return the number of strings contained in a list box.
LBADD dlg_id id ["string"]
dlg_id Specifies the identifier of the dialog box that contains the list box. id Specifies the identifier of the list box. string Specifies a sequence of characters to add to the list box.
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.