Nieprostokatne tablice dynamiczne: pomoc &ltb&gtpilnie&lt/b&

0

Cytat z Delphi Help:
You can create multidimensional dynamic arrays that are not rectangular. The first step is to call SetLength, passing it parameters for the first n dimensions of the array. For example,

var Ints: array of array of Integer;

SetLength(Ints,10);

allocates ten rows for Ints but no columns. Later, you can allocate the columns one at a time (giving them different lengths); for example

SetLength(Ints[2], 5);

makes the third column of Ints five integers long.

U mnie w programie:
type TIntegerArrays=array of array of LongInt;
(...)
private
fISIs : TIntegerArrays;
(...)

SetLength(ISIs, Succ(Trials)); *'[' expected but ',' found (po ISIs)
SetLength(ISIs[Trials], ISISize div 4);*Not enough actual parameters (po ISIs[Trials])

Pomocy!!!! Ktos widzi czym sie rozni moje rozwiazanie od proponowanego w pomocy? Chyba nie chodzi o to, ze u mnie tablica jest polem klasy?

--
Pawel {Delphi 6 Personal}

Po pierwsze: naciśnij F1

0

Sorry za zawracanie glowy, juz znalazlem... Odwolanie w SetLength bylo do wlasciwosci a powinno byc do samego pola. Glupi blad... {wstyd} {wstyd} {wstyd} --Pawel {Delphi 6 Personal}

Po pierwsze: naciśnij F1

1 użytkowników online, w tym zalogowanych: 0, gości: 1