Applies To
DrawingObjects Collection, DropDown Object, DropDowns Collection, ListBox Object, ListBoxes Collection.
Description
Returns or sets the text entries in a list box or drop-down list box, as an array of strings (Syntax 1), or returns or sets a single text entry (Syntax 2). Returns an error if there are no entries in the list. Read-write.
Syntax 1
object.List
Syntax 2
object.List(index)
Remarks
Setting this property clears any range specified by the ListFillRange property.
See Also
AddItem Method, ListCount Property, RemoveItem Method.
Example
This example sets the entries in list box one on Dialog1.
DialogSheets("Dialog1").ListBoxes(1).List = _ Array("cogs", "widgets", "sprockets", "gizmos")
This example sets entry four in list box one on Dialog1.
DialogSheets("Dialog1").ListBoxes(1).List(4) = "gadgets"