List Property
◄Summary► ◄Details► ◄Example► ◄Contents► ◄Index► ◄Back►
──────────────────────────────────────────────────────────────────────────────
Sets or returns the items contained in a control's list. The list area
is a string array in which each element is a list item. Property not
available at design time; read-only for directory list box, drive list box,
and file list box.
[form.]ctlname.List(index%)[ = stringexpression$]
■ index% Position in the list:
Value Description
════════════════ ═══════════════════════════════
0 to ListCount-1 Valid string array index
-1 (Default) Empty string array;
no item selected
■ stringexpression$ List item text
Applies To
◄Combo Box Control► ◄Directory List Box Control►
◄Drive List Box Control► ◄File List Box Control►
◄List Box Control►
See Also
◄ADDITEM Method► ◄ListCount Property►
◄ListIndex Property► ◄REMOVEITEM Method►
◄Sorted Property►