Stasiu

Hi,
I'm a newbie in coding, sorry for an elementary question.

' I have arrays e.g.
a = Array(1, 11, 111)
b = Array(2, 22, 222)
'then I create a jagged array:
bigarray = Array(a,b)
'this works ok, I can address it by bigarray()()
'But how can I declare this bigarray in the first place so I can then append next small array to it.
c=Array(3,33,333)
'and here I'd like to append this c to existing bigarray How do I do it

### Re: Simple thing: how to append to a jagged array?

Shlizar Axis

I don't know if this is what you are looking for but if do the following:

a = Array(1, 11, 111)
b = Array(2, 22, 222)

bigarray = Array(a,b)

The bigarray wil become like this:

bigarray(0,0) = 1
bigarray(0,1) = 11
bigarray(0,2) = 111

bigarray(1,0) = 2
bigarray(1,1) = 22
bigarray(1,2) = 222

if you simply redefine the bigarray via bigarray = Array(a,b,c), the c array will be "rewritten" to the following:

bigarray(0,0) = 1
bigarray(0,1) = 11
bigarray(0,2) = 111

bigarray(1,0) = 2
bigarray(1,1) = 22
bigarray(1,2) = 222

bigarray(2,0) = 3
bigarray(2,1) = 33
bigarray(2,2) = 333