Skip to content

NewIndex Property

Description

Returns the index of the item most recently added to a ListBox control.

Property Type

Read-only property

Syntax (Visual Basic)

Public Property NewIndex() As Long

Remarks

You can use this property with sorted lists when you need a list of values that correspond to each item in the ItemData property array. As you add an item in a sorted list, the item is inserted in the list in alphabetic order. 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.

The NewIndex property returns -1 if there are no items in the list or if an item has been deleted since the last item was added.

See Also

ListBox Control


See Also Suite Pro Controls ActiveX Control v24.0


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.