|
-
Feb 28th, 2002, 10:51 AM
#1
Thread Starter
Lively Member
Multi - Dimensional Array
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)
-
Feb 28th, 2002, 10:53 AM
#2
Frenzied Member
-
Feb 28th, 2002, 10:56 AM
#3
Retired VBF Adm1nistrator
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
Feb 28th, 2002, 10:57 AM
#4
Hyperactive Member
Sure you put the comma in your code?
-
Feb 28th, 2002, 11:06 AM
#5
check the other code around it - you are probably missing something somewhere else..
-
Feb 28th, 2002, 11:07 AM
#6
Thread Starter
Lively Member
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
-
Feb 28th, 2002, 11:32 AM
#7
Hyperactive Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|