Wiki Home

Add Item

Namespace: WIN_COM_API

Add Item is a method of comboboxes and listboxes. It allows you to add items to the combo or list dynamically. The syntax is:

oObject.AddItem( cValue [, nIndex [, nColumn] ] )

As the syntax indicates, Add Item uses the List Index approach to identifying items in a list or combo.

Beware: Add Item always adds a new item. It can't be used to edit an existing item, even to change the data in a different column.
Contributers: Tamar Granor
Category VFP Controls Category VFP Methods