Item Method

Description

Returns the object with the specified index from the object collection.

Syntax

object.Item(Index)

Syntax Details

ArgumentDescription
objectAn expression evaluating to an object of type TOCollection.
IndexRequired. A Long value. The index of the object you want to retrieve from the collection.

Return Type

An Object object.  The object with the specified index.

Tip: You can use the returned object as an argument value for other methods (for example, CopyObject, GetLogicalName, and UpdateObject.)

For test objects, you can also use the  GetTOProperty and SetTOProperty methods to modify the returned object's properties before updating the object in the object repository (using UpdateObject.)