Einzelnen Beitrag anzeigen

marabu

Registriert seit: 6. Apr 2005
10.109 Beiträge
 
#6

Re: Inkompatible Typen: 'Array' und 'dynamic array'

  Alt 3. Sep 2005, 17:17
Hi,

Zitat von Borland:
function Copy(S; Index, Count: Integer): array;
Ich verwende das hier:

Delphi-Quellcode:
procedure Shuffle(var dsa: array of string);
var
  i, iRandom: integer;
  s: string;
begin
  for i := 1 to High(dsa) do begin
    iRandom := Random(i);
    s := dsa[Pred(i)];
    dsa[Pred(i)] := dsa[iRandom];
    dsa[iRandom] := s;
  end;
end;
Grüße vom marabu
  Mit Zitat antworten Zitat