TStrings.Insert

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

Inserts a string at the specified position.

Declaration

TStringsObj.Insert(IndexS) Parameters
TStringsObj     A TStrings object  
Index [in] Required Integer
S [in] Required String
Result     none  

Description

The Insert method inserts the string at the specified position in the list.

Parameters

The method has the following parameter:

Index

Specifies the position at which the string will be inserted. Index is zero-based. If Index is 0, the string will be inserted at the beginning of the list, if Index is 1 - after the first string, and so on.

To add the string at the end of the list, you can also use the Add method.

S

The string to be inserted in the list.

See Also

TStrings.Add
TStrings.Exchange
TStrings.LoadFromFile
TStrings.Move

Highlight search results