Index Property (Host Objects)

Applies to TestComplete 14.61, last modified on April 22, 2021

Description

The Index property returns the index (starting from 0) of the given host in the network suite's host collection (see Hosts Object). This index can be used to identify the host in this collection via the Hosts.Items property. To learn the number of hosts in this collection, use the Hosts.Count property.

Declaration

HostObj.Index

Read-Only Property Integer
HostObj An expression, variable or parameter that specifies a reference to a Host object

Applies To

The property is applied to the following object:

Property Value

An integer value that means the zero-based index that the given host has in the host collection of the network suite.

See Also

Distributed Testing
Host.Name
Hosts Object
Hosts.Count
Hosts.Items

Highlight search results