FindItemID Method

Applies to TestComplete 15.64, last modified on May 16, 2024

Returns the item with the specified ID.


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


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


The method has the following parameter:


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