MultiSelect Property

Example   Applies To   See Also

Specifies whether a user can make multiple selections in a ListBox control and how the multiple selections can be made. Available at design time; read/write at run time.

Syntax

ListBox.MultiSelect[ = nChoice]

Settings

nChoice

The settings for the MultiSelect property are:

Setting Description
0 (Default) Multiple selection isn't allowed.
1 Multiple selection is allowed. To select multiple items in a ListBox control, hold the CTRL key down while clicking the items.

Remarks

Set MultiSelect to true (.T.) to enable a user to select multiple items in a list. You can use the Selected property to determine which items are selected.