Returns the index of the item most recently added to a Combo box or List box list array. Not available at design-time, read-only.
object.NewIndex as Integer
This property is useful when you are dealing with sorted lists (i.e. the control's Sorted property is set to True). When sorting is turned on, any inserted items are given an index that corresponds to their display order. The NewIndex property can be used to return the index of the added item.
This property is also useful if you have added a list item and you want to add a corresponding value to the ItemData array .
The NewIndex property returns -1 if there are no items have been added to the list or if an item has been deleted since the last item was added.
ItemData property | List property (ComboBox) | List property (ListBox) | ListCount property | ListIndex property | TopIndex property | Properties
Combo box control | List box control
© 2004-2021 looksoftware. All rights reserved.