Why would Option Explicit cause an error if all my Vars are DIMed?
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. 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?
# 1 Re: Why would Option Explicit cause an error if all my Vars are DIMed?
> What else could be causing this?
Nat: Might you have Dim'ed a variable more than once?
--
Phil Weber
# 2 Re: Why would Option Explicit cause an error if all my Vars are DIMed?
Phil,
I checked and all the vars are dimmed only once. This is an app that I inherited
from someone else, so it's their code. I added option explicit and all of
a sudden it doesn't work...
"Phil Weber" <pweber@nospam.fawcette.com> wrote:
> > What else could be causing this?
>
>Nat: Might you have Dim'ed a variable more than once?
>--
>Phil Weber
>
>
Nat at 2007-11-11 23:19:04 >

# 3 Re: Why would Option Explicit cause an error if all my Vars are DIMed?
Yes, there are two, and their vars are dimmed as well. One file Has OPtion
Explicit too- I've tried commenting it out so there's only one, in the main
page, but no luck.
Is ASP case sensitive?
"Kris Eiben" <eibenkthisisforspammers@yahoo.com> wrote:
>Any #included files?
>
>"Nat" <grauman@bellsouth.net> wrote in message
>news:3db04691$1@tnews.web.dev-archive.com...
>>
>> Phil,
>> I checked and all the vars are dimmed only once. This is an app that I
>inherited
>> from someone else, so it's their code. I added option explicit and all
>of
>> a sudden it doesn't work...
>>
>> "Phil Weber" <pweber@nospam.fawcette.com> wrote:
>> > > What else could be causing this?
>> >
>> >Nat: Might you have Dim'ed a variable more than once?
>> >--
>> >Phil Weber
>
>
nat at 2007-11-11 23:19:58 >

# 4 Re: Why would Option Explicit cause an error if all my Vars are DIMed?
Any #included files?
"Nat" <grauman@bellsouth.net> wrote in message
news:3db04691$1@tnews.web.dev-archive.com...
>
> Phil,
> I checked and all the vars are dimmed only once. This is an app that I
inherited
> from someone else, so it's their code. I added option explicit and all
of
> a sudden it doesn't work...
>
> "Phil Weber" <pweber@nospam.fawcette.com> wrote:
> > > What else could be causing this?
> >
> >Nat: Might you have Dim'ed a variable more than once?
> >--
> >Phil Weber
# 5 Re: Why would Option Explicit cause an error if all my Vars are DIMed?
> Is ASP case sensitive?
Nat: Depends on the language: JavaScript, yes. VBScript, no.
--
Phil Weber
# 6 Re: Why would Option Explicit cause an error if all my Vars are DIMed?
One thing that might help is to go into your internet options and turn off
friendly errors. This will most likely take the 500 error and turn it into
something more useful that might help give you a clue.
"Nat Grauman" <grauman@bellsouth.net> wrote in message
news:3db03e5c$1@tnews.web.dev-archive.com...
>
> 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. 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?
# 7 Re: Why would Option Explicit cause an error if all my Vars are DIMed?
Hi
The Error you are seeing is the friendly error in your browser setting
go to the tool -> internet option -> and advance tab there you will find
friendly error messages clicked uncheck it then you will be able to view
the actual error in the page you are using
good luck
Pramod Kumar R
"Nat Grauman" <grauman@bellsouth.net> wrote:
>
>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. 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?