See Also Example
Applies To
Combo box, list box
Description
Specifies the index Not available at design time; read-only at run time.
Usage
[form.]{ combobox|listbox}.NewIndex
Remarks
This property is useful with sorted lists when you need a list of values that correspond to each item in the ItemData As you add an item in a sorted list, Visual Basic inserts the item in the list alphabetically. This property tells you where the item was inserted so that you can insert a corresponding value in the ItemData property at the same index.
NewIndex will return -1 if there are no items in the list or if an item has been deleted since the last item was added.
Data Type
Integer
Help:
AddItem Method
Clear Method
List Property
ListCount Property
MultiSelect Property
RemoveItem Method
Selected Property
TopIndex Property
Programmer's Guide:
Chapter 3, "Creating and Using Controls"