When i declare the following array i keep getting error saying Expected ')' on line shown below. If you know why please enlighten me.
Dim MultiArray(1 To 5, 1 to 5)
Printable View
When i declare the following array i keep getting error saying Expected ')' on line shown below. If you know why please enlighten me.
Dim MultiArray(1 To 5, 1 to 5)
No error here.
Your code is okay.
Sure you put the comma in your code?
check the other code around it - you are probably missing something somewhere else..
its deffinately showing as an error, im saving the file as a vbs file would that make a difference? If so have you got any idea how i declare an array for us with WSH.
thanks
if your doing this in VB script its alittle different....
arrays always start at zero so you can only specify the ubound.
so if you wanted your upper bound to be 5 this is how you would do it...
Dim Array(5,5)
but since you had 1-5 you would want
Dim Array(4,4) this will give you 0-4, 0-4