[DUG] dynamic array creation

Paul Lowman paul_lowman at xtra.co.nz
Tue Nov 2 13:42:22 NZDT 2010


Does anyone know how to create a multidimensional dynamic array using 
the Create method.

This works fine -

type
   TArrDbl = array of double;

var
   ArrDbl : TArrDbl;

begin
..
..
   ArrDbl := TArrDbl.Create(1,2,3,4);
..
..
..

How do you do this for a 2 or more dimensional array?

(It can be done by using a dynamic array of another dynamic array)

Any ideas welcome ...

Paul Lowman



More information about the Delphi mailing list