List Property

Applies To
ListBox, ComboBox

Description
Get or sets the string value of the specified element in the control item list.

Usage

GGet Form.Control.List(index), var  
GSet Form.Control.List(index), value  
Form
Name of a form or string variable containing a form name.
Control
Name of a control or string variable containing a control name. The control must exist in the specified form.
index
Integer expression for the list array index staring with 0.
var
string variable that will contain the value of the property.
value
String expression for the new value of the property.

Values
String containing the specified list item.

Remarks
After using AddItem to add items to the ListBox or ComboBox list, you can use the List property to get or edit the value of any of the items.
Setting a blank string, you can delete an item.

See Also
ComboBox, ListBox, ListCount, AddItem

Example

String part$GGet frmMain.lstPartNames.List(0), part$