procedure Put(const Index: Integer; const S: string); overload;
Writes S into item Index; S takes every text kind.
| # | Name | Description |
|---|---|---|
| 1 | Index | The item's index, 0..Count - 1. |
| 2 | S | The text; it may be an item of this list, this one included. |
Result: stored in self (calling object)
Remarks:
List[Index] := S takes a Substring only, stored as an assignment stores it: a view stays a view, so List[j] := List[i] reads item i's characters until item i is written or deleted, and dangles after that, as designed, as a local's view does. Put takes every text kind. A sorted list raises EStringListError.