AddItem Method

Object List Next Object

Defined By:
ListBox

Description:

Adds a new item to a ListBox, ComboBox, or FileListBox.

Declaration:

Function AddItem (ByVal item As String) As Integer

Details:

When a list is displayed for the first time, the list is emtpy. You must AddItem to create the list. You begin the expression by specifying the control to which you would like to add an item. Then you enter the string expression that you would like to add.

If the Sorted property is True, item is automatically added to the list in the correct alphabetical order. If Sorted is False, item is placed at the end of the list.

See Also:

Clear method, RemoveItem method.