| | |
Multidimensional Array assignment statement
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Jan 2006
Posts: 5
Reputation:
Solved Threads: 0
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
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
•
•
Join Date: Mar 2009
Posts: 907
Reputation:
Solved Threads: 167
Okay, the closest you are going to get as far as I know is...
But then you would have to do...
Good Luck
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
Dim aTemp(0 to 1, 0 to 1) As Integer
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
aTemp(0,0) = 1 aTemp(1,0) = 2 aTemp(0,1) = 3 aTemp(1,1) = 4
Good Luck
If anyone has helped you solve your problem, please mark your thread as solved.
Thanks
Thanks
![]() |
Similar Threads
- typedef or a multidimensional array? (C)
- what does assignment statement return (C)
- Question regarding multidimensional array for navigation bar (Graphics and Multimedia)
- Sort multidimensional array on more than one column? (ASP)
- multidimensional array merge using PHP (PHP)
- How to Sort a MultiDimensional Array (C)
- multidimensional array (C)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: DLL
- Next Thread: Extracting or Filtering in Matlab
Views: 308 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for Visual Basic 4 / 5 / 6
* 6 429 2007 access activex add age append application basic beginner birth bmp c++ calculator cd cells.find click client code college column component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report save search sendbyte sites sort sql sql2008 sqlserver struct subroutine table tags textbox time timer urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





