Item Property (Specific to MSAA ComboBox and MSAA List Objects)

Applies to TestComplete 15.63, last modified on April 10, 2024

Description

Use the Item property to get the caption of a list box or combo box item specified by index.

Declaration

TestObj.Item(Index)

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

Applies To

The property is applied to the following objects:

View Mode

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

Parameters

The property has the following parameter:

Index

The index of the desired item. Indexes are zero-based, that is, they range from 0 to ItemCount-1.

Property Value

A string holding the item caption, or an empty string if the specified item is not found.

Remarks

If you use Python or DelphiScript, you should enclose the parameter of the Item property in square brackets: Item[Index].

You can also determine the item caption using the Caption property of the corresponding ListItem object.

See Also

ItemCount Property (Specific to MSAA ComboBox and MSAA List Objects)
SelectedItem Property (Specific to MSAA ComboBox Objects)
Selected Property (MSAA Objects)
Focus Property (Specific to MSAA List Objects)
Caption Property (MSAA Objects)
DoDefaultAction Method (MSAA Objects)

Highlight search results