ItemIDToIndex Method

Applies To   See Also

Returns the value of nIndex, the position of an item in a control's list.

Syntax

[nIndex =]Control.ItemIDToIndex(nItemID)

Arguments

nItemID

The unique identification number associated with that item.

Remarks

Each item added to a combo box or list box has two numbers assigned to it:

Initially, as items are added to the control, these two numbers are identical. But as items are sorted, removed, and added, these numbers are no longer identical.

Use the ItemIDToIndex method to retrieve the nIndex number for a particular item in the control's list when you know its nItemID number.