SelectedItem Property (Specific to MSAA ComboBox Objects)

Applies to TestComplete 15.0, last modified on October 19, 2021

Description

Use the SelectedItem property to get the index of the selected combo box item. To get the caption of the selected item, use the Item property.

Declaration

TestObj.SelectedItem

Read-Only Property Integer
TestObj A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section

Applies To

The property is applied to the following object:

View Mode

To view this property in the Object Browser panel and in other panels and dialogs, activate the Advanced view mode.

Property Value

A zero-based index of the selected item.

See Also

ItemCount Property (Specific to MSAA ComboBox and MSAA List Objects)
Item Property (Specific to MSAA ComboBox and MSAA List Objects)
Selected Property (MSAA Objects)
DoDefaultAction Method (MSAA Objects)

Highlight search results