Einzelnen Beitrag anzeigen

EWeiss
(Gast)

n/a Beiträge
 
#7

Re: Mehrdimensionales Array variable auslegen

  Alt 24. Apr 2009, 12:59
Zitat von himitsu:
Delphi-Quellcode:
ia = Array of Array of Byte;
// oder einfach nur
ia = Array of {Types.}TByteDynArray;
Delphi-Quellcode:
// ia: Array[0..767, 0..100] of Byte;

SetLength(ia, 768);
For i := 0 to High(ia) do
  SetLength(ia[i], 101);

// oder

SetLength(ia, 768, 101);
Ahh High wäre dann der zweite eintrag
Danke schön.

EDIT:
warum dann einen wert mehr ?
aus 767 wird 768 ?

gruss Emil
  Mit Zitat antworten Zitat