PDA

View Full Version : Why would OptionExplicit cause an error if my Vars are DIM'd??


natgrauman
10-18-02, 14:48
Hi,

I am getting a "The page cannot be displayed.... HTTP 500 - Internal server error" when I place Option Explicit in the first line of my page. I have checked the page a zillion times now and am certain that there are no un-DIMed variables, and all vars are DIM'd only once. I have two #Includes a few lines below, and one of them has Option Explicit as well, but I've commented it out and the problem still occurs.

I only get the error when I put Option Explicit in the main page- it runs
fine without it.

What else could be causing this?

rnealejr
10-18-02, 16:23
Have you checked your includes to make sure that no duplicated variable names between the includes and the page ?