GetItem Event

Applies to TestComplete 15.47, last modified on January 20, 2023

Occurs when the combo box requests the item text.

Declaration

GetItem(DataIndex) Parameters
Data [in] Required Object
Index [in] Required Integer
Result     String  

Description

Custom keyword test operations can use combo box in-place editors in the Keyword Test editor. The GetItem event occurs when the combo box requests the text of a particular item. To specify the number of items in the combo box, use the GetCount event handler.

Parameters

The event has the following parameters:

Data

An object that provides access to the operation fields. This object contains properties that correspond to individual operation fields and whose names coincide with the field names.

Index

The index of the combo box item. Indexes range from 0 to GetCount-1.

Return Value

The text of the specified combo box item.

See Also

Events Reference
AllowInputText Event
GetCount Event

Highlight search results