If i put my mouse pointer of the "somestringvalue" part it shows a tooltip that says End of Statement Expected. What does this mean?
Quote:
Dim results(0,0,0) As String
Dim index As Long
redim preserve results(index,0,0) = "somestringvalue"
Printable View
If i put my mouse pointer of the "somestringvalue" part it shows a tooltip that says End of Statement Expected. What does this mean?
Quote:
Dim results(0,0,0) As String
Dim index As Long
redim preserve results(index,0,0) = "somestringvalue"
you can't assign a value to an element of the array on a redim statement..
VB Code:
Dim results(0,0,0) As String Dim index As Long redim preserve results(index,0,0) results(index,0,0) = "somestringvalue"
Surely you can only redim the final dimension if you use Preserve?Quote:
Originally Posted by kleinma
Thanks for reminding me.... Now what about this. In classic VB6 I could do multi-dimensional arrays. How do i do them in VB.NET?
Quote:
An unhandled exception of type 'System.ArrayTypeMismatchException' occurred in microsoft.visualbasic.dll
Additional information: 'ReDim' can only change the rightmost dimension.
yeah I think thats right... last dimention onlyQuote:
Originally Posted by taxes
The example given IS a multi dimension array.Quote:
Originally Posted by nkad
right, i know that. thx.
Quote:
Originally Posted by nkad
Then what did you mean in your last question?