TStrings.Move

Applies to TestComplete 15.47, last modified on January 20, 2023

Moves the string to the specified position.

Declaration

TStringsObj.Move(CurIndexNewIndex) Parameters
TStringsObj     A TStrings object  
CurIndex [in] Required Integer
NewIndex [in] Required Integer
Result     none  

Description

The Move method moves the string from position CurIndex to position NewIndex.

Parameters

The method has the following parameters:

CurIndex

Specifies the current string position in the list.

NewIndex

Specifies the new position for the string.

Both parameters are zero-based, that is the first position in the list is 0, the second - 1, and so on. The last position is Count - 1.

See Also

TStrings.Add
TStrings.Exchange
TStrings.Insert
TStrings.LoadFromFile

Highlight search results