Select (Method)

Applies To:

ControlsDropDown object, ControlsListBox object

Description:

Changes the user selection of items in a control.

Syntax:

Expression.Select(Index As Long)

Expression Required:

An expression that returns an object for these items:

Example:

This example shows how to set the selection of one drop-down list based on the index selected in another drop-down list:

var MyIndex = DropDown1.SelectedIndex=1
DropDown2.Select(MyIndex)