A character string array used to access the items in a ComboBox or ListBox control by item ID. Not available at design time; read-write at run time.
Syntax
Control.ListItem(nItemID)[ = cChar]
Settings
nItemID
Specifies the item to retrieve using the item's unique ID.
Remarks
The ListItem property works in conjunction with the ListCount property; enumerating a list from 1 to ListCount returns all items in the list. Use the List property to retrieve items in the order they are displayed; use the ListItem property to retrieve items according to their item ID.
Note To add items to a combo box or list box, use the AddItem or AddListItem method. To remove items, use the RemovetItem method or the RemoveListItem method. To keep items in alphabetic order, set the control's Sorted property to true (.T.) before adding items to the list.