AddItem
Applies to
VACombo, VAList
Description
Adds an item to a VAList or VACombo control operating in field-bound mode.
Syntax
object.AddItem item, index
The AddItem method syntax has these parts:
 
Remarks
If you supply a valid value for index, item is placed at that position within the object. If index is omitted, item is added at the proper sorted position (if the Sorted property is set to True) or to the end of the list (if Sorted is set to False).
A VAList or VACombo control that is operating in record list mode (VARecordList property is set to True) does not support the AddItem method.
Example
Private Sub Command1_Click()
VAList1.AddItem (Text2.Text)
End Sub