FindItemID Method

Applies to TestComplete 15.69, last modified on November 13, 2024

Returns the item with the specified ID.

Declaration

collectionObj.FindItemID(ID) Parameters
collectionObj     One of the objects listed in the Applies To section  
ID [in] Required Integer
Result     One of the objects listed in the Return Value section  

Applies To

This method applies to the following objects:

TcxEditButtons, TcxRadioGroupItems

Description

Use the FindItemID method to obtain a collection item by its unique ID.

Parameters

The method has the following parameter:

ID

A unique identifier of the desired item.

Return Value

If the item with the specified ID was found in the collection, the FindItemID method returns the object that provides a scripting interface to this item:

  • The TcxEditButtons.FindItemID method returns the TcxEditButton object.
  • The TcxRadioGroupItems.FindItemID method returns the TcxRadioGroupItem object.

If the item with the specified ID was not found, the method returns an “empty” value (Nothing in VBScript, null in JavaScript, JScript, C++Script, C#Script, None in Python and nil in DelphiScript).

See Also

ID Property

Highlight search results