Difference between revisions of "TStringList.Append"
(new page) |
Savage0795 (talk | contribs) (→Example) |
||
Line 6: | Line 6: | ||
==Example== | ==Example== | ||
− | |||
<syntaxhighlight lang="pascal"> | <syntaxhighlight lang="pascal"> |
Latest revision as of 20:20, 13 November 2017
procedure Append(S: string) S: string to be added
Description
This procedure does exactly the same thing as Add, it just doesn't return the index.
Example
var
s: TStringList;
i: integer;
begin
s := File.CreateStringList();
s.Append('a');
s.Append('b');
s.Append('d');
s.Sort();
s.Sorted := TRUE;
s.Append('c');
WriteLn(s.CommaText);
// a,b,c,d
s.Free;
end.