[DUG] dynamic array creation
David O'Brien
Dave at iccs.co.nz
Tue Nov 2 13:49:52 NZDT 2010
Something like:
var Matrix: array of array of Double;
begin
SetLength(Matrix, 10, 20)
end;
-----Original Message-----
From: delphi-bounces at delphi.org.nz [mailto:delphi-bounces at 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 at delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-request at delphi.org.nz with Subject:
unsubscribe
More information about the Delphi
mailing list