Registriert seit: 17. Mai 2007
482 Beiträge
Delphi XE6 Professional
|
Delete duplicates from list
3. Jan 2012, 19:32
Delphi-Version: 2010
Delphi-Quellcode:
var
S: string;
I: Integer;
begin
for S in List do
begin
I := List.IndexOf(S);
while I = -1 do
begin
List.Delete(I);
I := List.IndexOf(S);
end;
end;
end;
...but nothing happen after this. List is TStrings. F1
|