Array of array of array problem... lazarus / 62-General ---------------------------------------------------------------------- Fred vS · 2014-04-08 23:53 Hello. I have some trouble with array : Code: [Select]type ...   TDArFloat = array of cfloat;    TDArPARFloat = array of TDArFloat;   TDArIARFloat = array of TDArPARFloat;  .... var mymultiarray : TDArIARFloat ; When i use that code with fpc 2.7.1 => perfect, no problem : Code: [Select] setlength(mymultiarray,1) ;  setlength(mymultiarray[0], 1) ;   setlength(mymultiarray[0].[0],1) ;   But with fpc 2.6.2 i have that error  message : Quote setlength(mymultiarray[0].[0],1)  Error: Illegal qualifier What must i do to be fpc 2.6/2.7 compatible ? Many thanks. Fred ---------------------------------------------------------------------- engkin · 2014-04-08 23:59 Maybe SetLength(mymultiarray[0, 0], 1);? ---------------------------------------------------------------------- Fred vS · 2014-04-09 00:02 Code: [Select]SetLength(mymultiarray[0, 0], 1);=> Quote Error: Incompatible types: got "Set Of Byte" expected "Int64" ---------------------------------------------------------------------- engkin · 2014-04-09 00:17 From an example from the docs: SetLength(mymultiarray, 1, 1, 1); ---------------------------------------------------------------------- Fred vS · 2014-04-09 02:48 @ engkin : Many thanks. Aaargh, lot of code to change and...  with SetLength(mymultiarray, 1, 1, 1), it set length for each array. With the fpc 2.7.1 syntax, you can set only the length of last array. Or maybe does it exist something like : SetLength(mymultiarray, -1, -1, 3) but i do not find it in doc ---------------------------------------------------------------------- Martin_fr · 2014-04-09 03:26 Code: [Select] setlength(mymultiarray[0].[0],1) Why the "." ? Should it not be Code: [Select] setlength(mymultiarray[0][0],1) ---------------------------------------------------------------------- Fred vS · 2014-04-09 09:57 @ Martin_fr => more than ever => brillantissimo  Code: [Select]setlength(mymultiarray[0][0],1) Did the trick  Many thanks. (and now re-change all my code  ) PS : Strange that setlength(mymultiarray[0].[0],1) works perfectly with 2.7.1. ---------------------------------------------------------------------- Martin_fr · 2014-04-15 14:56 http://bugs.freepascal.org/view.php?id=26016