Einzelnen Beitrag anzeigen

qwertz543221
(Gast)

n/a Beiträge
 
#9

Re: Arrays doppelte einträge eliminieren

  Alt 15. Dez 2009, 15:57
corpsman:
Zitat:
Probier mal das hier, ..
[delphi]
// quicksort_Array;
// entfernen doppelte, dreifache ..
for i :=high(MyArray) downto 1 do begin
if MyArray[i-1] = MyArray[i] then begin
for j := i to High(Myarray)-1 do begin
myArray[j] := myArray[j+1];
end;
setlength(Myarray, high(myarray));
end;
end;
[delphi]


habs aber nicht getestet ,)
danke - das ist in kürze das ausgesagt, was ich brauchte. danke auch an alle anderen für ihre bemühungen.
  Mit Zitat antworten Zitat