Simulates a user selection in the combo box.
This method, if successful, triggers an item event of type et_COMBO_SELECT.
Simulates a user selection in the combo box.
This method, if successful, triggers an item event of type et_COMBO_SELECT.
| Visual Basic |
|---|
Public Sub SelectExclusive( _ ByVal Index As Variant, _ Optional ByVal SearchKey As BoSearchKey = psk_ByValue _ ) |
The value to be selected. Select the value by supplying one of the following:
| Value | Description |
|---|---|
| psk_ByValue | By item value |
| psk_ByDescription | By item description |
| psk_Index | By item index |
The search type (default is by value)
SelectExclusive differs from Select in that, if a search by value or by description fails, a search with the other settings is not performed and an exception is thrown immediately.