We help IT Professionals succeed at work.

Microsoft VBScript runtime error '800a000d' Type mismatch for Dim array

Hi Experts
i have a very simple code using classic ASP in vb
dim x(50),f(50)
for m=1 to 50
  x(m)=""
 f(m)="x"
next

Open in new window


i am getting the following error in the first line
dim x(50),f(50)

Open in new window


Microsoft VBScript runtime error '800a000d' Type mismatch
i tried to use
Option Explicit

Open in new window

but i again get alot of error regarding other pages and functions

note that this code was working fine before, i just got this error now

please help

thank you
Comment
Watch Question

Billing Engineer
Most Valuable Expert 2014
Top Expert 2009
Commented:
I never put several variables on the same line:
dim x(50)
dim f(50)

however, it should work nevertheless
can you try with the 2 lines, and make sure the error really occurs on that line on and not on some other line?
try to create a script with just those 2 lines

I am sure the error is actually caused by some other code (above) those lines