Something like:

var Matrix: array of array of Double;
begin
  SetLength(Matrix, 10, 20)
end;

-----Original Message-----
From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
On Behalf Of Paul Lowman
Sent: Tuesday, 2 November 2010 1:42 p.m.
To: Delphi List
Subject: [DUG] dynamic array creation

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

_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject:
unsubscribe

_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe

Reply via email to