943,565 Members | Top Members by Rank

Ad:
May 27th, 2009
0

Multidimensional Array assignment statement

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 1
Newbie Poster
Vorpal is offline Offline
5 posts
since Jan 2006
May 27th, 2009
0

Re: Multidimensional Array assignment statement

Okay, the closest you are going to get as far as I know is...
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
  1. Dim aTemp(0 to 1, 0 to 1) As Integer
But then you would have to do...
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
  1. aTemp(0,0) = 1
  2. aTemp(1,0) = 2
  3. aTemp(0,1) = 3
  4. aTemp(1,1) = 4

Good Luck
Reputation Points: 156
Solved Threads: 296
Posting Virtuoso
vb5prgrmr is offline Offline
1,670 posts
since Mar 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: DLL
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Extracting or Filtering in Matlab





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC