RAD Studio |  |

Accessing a Particular String
See Also
Collapse All

The Strings array property contains the strings in the list, referenced by a zero-based index. Because Strings is the default property for string lists, you can omit the Strings identifier when accessing the list; thus

Copy Code

    StringList1.Strings[0] := 'This is the first string.';

Copy Code

    StringList1->Strings[0] = "This is the first string.";

is equivalent to

Copy Code

    StringList1[0] := 'This is the first string.';

Copy Code

    (*StringList1)[0] = "This is the first string.";

See Also

Manipulating Strings in a List

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!