Re: 3 dimension array
- Posted by Juergen Luethje <jluethje at gmx.de> Aug 21, 2002
- 380 views
C. <cklester at yahoo.com> wrote: >> > What is the code needed to create a 3 dimensional array? In Basic it is >> > a simple Dim somearray(a,b,c). I assume that I can take the code for 3 >> > dimensions to configure one for 4 and possible 5 dimensions. >> >> > The arrays will strictly house integers and will initially be filled >> > with zeroes. The multiple dimensions are needed to access unique number >> > combinations representing time, space and values. >> >> > Thanks >> >> >> a = 3 >> b = 7 >> c = 4 >> somearray = repeat(repeat(repeat(0,c),b),a) > This will need to be made into a recursive function, I'm sure... :) The example I gave works. Why "need to"? Regards, Juergen