Returns or sets a specific number for each item in the object.
Object.ItemData ( IIndex ) [ = lItemData ]
The ItemData property syntax has the following parts:
Name |
Type |
Description |
Object |
AComboBox |
AComboBox control |
lIndex |
Long |
An integer specifying the zero-based index of the item. |
lItemData |
Long |
The number to be associated with the specified item. |
The ItemData property is an array of long integer values with the same number of current items. The numbers associated with each item can be used to identify the items. The ItemData property is often used as an index for an array of data structures associated with the control's items.
The following statement changes the AComboBox ItemData 8th item in the ItemData array to be 20:
cb1.ItemData(7)=20