Show: Delphi
C++
Display Preferences
Accessing a Particular String
From RAD Studio
Go Up to Working with String Lists
The Strings array property contains the strings in the list, referenced by a zero-based index:
StringList1->Strings[0] = “This is the first string.”;
Because Strings is the default property for string lists, you can omit the Strings identifier when accessing the list; thus
StringList1.Strings[0] := 'This is the first string.';
is equivalent to
StringList1[0] := 'This is the first string.';