[DUG] dynamic array creation
David O'Brien
Dave at iccs.co.nz
Tue Nov 2 14:37:26 NZDT 2010
Just a memory from long ago. I think the assignment goes something like:
type
TArrDbl = array of array of double; // being [a,b]
var
ArrDbl : TArrDbl;
begin
..
..
ArrDbl :=
TArrDbl.Create([a0]1,[b0]2,[a1]3,[b1]4,[a3]5,[b3]6,[a4]7,[b4]8);
Ignoring the bracketed letters...
Or is that a different language?
Don't recall ever trying this though...
-----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 2:16 p.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] dynamic array creation
David
Theres no problem there - the dynamic array constructor is an alternate
way of both setting the size of the array and initialising the data at
one fell swoop. The problem is it's easy for a single dimension but not
clear for more.
Paul
_______________________________________________
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