TStrings.Items

Applies to TestComplete 14.92, last modified on September 16, 2021

Obtains or sets the string specified by its index.

Declaration

TStringsObj.Items(Index)
Read-Write Property Integer
Parameters
TStringsObj     A TStrings object  
Index [in] Required Integer

Description

The TStrings.Items property lets you obtain or set the string by its position in the list. The total number of strings in a TStrings object is specified by the Count property.

Parameters

The property has the following parameter:

Index

The index of the desired string. The index is zero-based: the first string has index 0, the second - 1, and so on. Index of the last string is Count - 1.

Property Value

A string.

Remarks

If you use Python or DelphiScript, you should enclose the parameter of the Items property in square brackets: Items[Index].

See Also

TStrings.Count

Highlight search results