InsertItem Method

Object List Next Object

Defined By:
ComboBox

Description:

InsertItem will insert a string at a given index.

Declaration:

Function InsertItem(byVal item As String, ByVal index As Integer) As Integer

Details:

InsertItem will place the requested item at the given index in the list. If the ListBox
s Sorted Property is set to True, InsertItem will place the item in the next logical position after the index.

InsertItem will return an integer representing the actual index where the item was inserted.

See Also:

AddItem method