If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Why would OptionExplicit cause an error if my Vars are DIM'd??

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-18-02, 13:48
natgrauman natgrauman is offline
Registered User
 
Join Date: Sep 2002
Posts: 11
Why would OptionExplicit cause an error if my Vars are DIM'd??

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?
Reply With Quote
  #2 (permalink)  
Old 10-18-02, 15:23
rnealejr rnealejr is offline
Registered User
 
Join Date: Feb 2002
Posts: 2,232
Have you checked your includes to make sure that no duplicated variable names between the includes and the page ?
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On