TStrings.Delete

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

Deletes a string at the specified position in the list.

Declaration

TStringsObj.Delete(Index) Parameters
TStringsObj     A TStrings object  
Index [in] Required Integer
Result     Integer  

Description

The Delete method deletes the string at the specified position in the list. To delete all strings from the list, use the Clear method.

Parameters

The method 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.

See Also

TStrings.Add
TStrings.Clear
TStrings.Move

Highlight search results