An array of items that correspond to the List array and allow users to store an additional field for each list item.
object.ItemData(index) as Array
The ItemData property is an array of values with the same number of items as the List property array. It can be used to store an additional field for each List array item. The most common way of using this property is to store the value (an employee ID for example) in the ItemData array and the related description (such as employee name) in the List array. By separating them into the ItemData and List arrays respectively you can restrict the display to the description only (in this case the Employee names) and have more control over both values.
At design-time, this property can be populated with a string that consists of individual list items separated by the semicolon character or via an expression.
In this example the ItemData property would be populated with a string like "04388;04522;05199", the List property would be populated with a string like "B Casey;R Stone;D Mitchell".
A list item's corresponding ItemData elements can be returned by specifying its index. The ListIndex property is used to determine a selected list item's index and corresponding ItemData index.
The ItemData array is automatically synchronized to the List array, therefore if the List array is re-indexed as a result of another action, for instance the Sorted property is set to True, then the ItemData array is re-indexed so that corresponding values in the two properties have the same index.
IntegralHeight property | List property (ComboBox) | List property (ListBox) | ListCount property | ListIndex property | NewIndex property