C
Chris Wertman
I am so lost on this one.
Dim Ary as Integer = New Integer(4) {0,1,2,3}
FAILS with the error:
Array initializer has 1 too few elements.
So I try
Dim Ary as Integer = New Integer(3) {0,1,2,3}
Since arrays start at 0 (I am thinking)
and I get this error:
Value of type '1-dimensional array of Integer' cannot be converted to 'Integer'.
I can friggin assign values to the array AT ALL ?
What is wrong with this ?
So I guess the question is why dosent this work ?
How can I dimension and assign values ?
Chris
Dim Ary as Integer = New Integer(4) {0,1,2,3}
FAILS with the error:
Array initializer has 1 too few elements.
So I try
Dim Ary as Integer = New Integer(3) {0,1,2,3}
Since arrays start at 0 (I am thinking)
and I get this error:
Value of type '1-dimensional array of Integer' cannot be converted to 'Integer'.
I can friggin assign values to the array AT ALL ?
What is wrong with this ?
So I guess the question is why dosent this work ?
How can I dimension and assign values ?
Chris