[DUG] dynamic array creation
Rohit Gupta
r.gupta at xtra.co.nz
Wed Nov 3 11:28:17 NZDT 2010
It compiles but I dont know if its sensible. Sometimes the compiler
produces garbage.
type
b = array of Integer;
a = array of b;
begin
a.Create (b.Create(1,2),b.Create(1,2));
On 02/11/2010 1:42 p.m., Paul Lowman wrote:
> 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