Multi dimensional arrays

1. Senior Member
Join Date
Dec 1969
Posts
6,476

## Multi dimensional arrays

Can you not dynamically resize a multidimensional array?<BR><BR>Ive tried everything.<BR><BR>Dim arrTenn(3,1)<BR>arrTenn(0,0) = "Test1"<BR>arrTenn(0,1) = 24<BR>arrTenn(1,0) = "Test2"<BR>arrTenn(1,1) = 23<BR>arrTenn(2,0) = "Test3"<BR>arrTenn(2,1) = 22<BR>arrTenn(3,0) = "Test4"<BR>arrTenn(3,1) = 21<BR>&#039;This array works fine when i write it out<BR><BR>ReDim Preserve arrTenn(4,1) &#039;Gives me script out of range on this line.<BR><BR>I dont see any problems with it.<BR>Any Ideas?<BR>

2. Senior Member
Join Date
Dec 1969
Posts
6,476

## Backwards?

Did I build this stupid thing backwards?<BR><BR>arrTenn(0,0)<BR>is it<BR>arrTenn(Column,Rows)<BR><BR>So basically I was trying to add a new column in each element of the array?<BR><BR>Instead of adding a new row like i wanted?<BR><BR>Dim arrTenn(1,3)<BR>arrTenn(0,0) = "Test1"<BR>arrTenn(1,0) = 24<BR>arrTenn(0,1) = "Test2"<BR>arrTenn(1,1) = 23<BR>arrTenn(0,2) = "Test3"<BR>arrTenn(1,2) = 22<BR>arrTenn(0,3) = "Test4"<BR>arrTenn(1,3) = 21<BR>ReDim Preserve arrTenn(1,4)<BR>allows me to add another name/value pair?<BR>arrTenn(0,4) = "Test5"<BR>arrTenn(1,4) = 29<BR><BR>IS that it?<BR>Im just looking at it Backwards??

3. Senior Member
Join Date
Dec 1969
Posts
6,476

## Made an *** of myself.

Cant believe I did that...<BR>let along post about it here.<BR><BR>Going to bed :-(<BR>

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•