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.