954,551 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Multidimensional Array assignment statement

G'Day.
If I use:
aTemp=Array(Array(0,1),Array(2,3))
I can reference the elements as:
aTemp(0)(0) etc.

How can I create an assignment statement so that I can address the array elements as:
aTemp(0,0) etc.

Yes, I know that I can use multiple assignment statements, but I'm hoping that there is a way to do it in one.

--Vorpal

Vorpal
Newbie Poster
5 posts since Jan 2006
Reputation Points: 10
Solved Threads: 1
 

Okay, the closest you are going to get as far as I know is...

Dim aTemp(0 to 1, 0 to 1) As Integer

But then you would have to do...

aTemp(0,0) = 1
aTemp(1,0) = 2
aTemp(0,1) = 3
aTemp(1,1) = 4


Good Luck

vb5prgrmr
Posting Virtuoso
1,912 posts since Mar 2009
Reputation Points: 156
Solved Threads: 296
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You