Re: 3 dimension array

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu