By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,077 Members | 1,790 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,077 IT Pros & Developers. It's quick & easy.

VBscript parsing in IIS

P: n/a
AT
I have the ASP page

<%@ Language=VBScript %>
<%
Option Explicit

Response.End

A = b
%>

On some servers I get parsing error on some I don't
Error says that variable A is not defined.

This is understandable but the script is not even supposed to get to A = b
line
because of Response.end

So there is some setting somewhere responsible for parsing.

Any ideas? please share.

--
_________________________
Anatoli Trifonov
Software Developer & Consultant
Minds are like parachutes - they only function when open.
--Thomas Dewar
Nov 18 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Anatoli:

At compile time, the VB compiler will tell you about the "A=b"
statement, because it's looking through the whole file( and you have Option
Explicit on ) for errors. At runtime it would skip "A=b" because of
response.end, but not at compile time.

Why not put
Dim A as String = b
0r
Dim A as String
A=b
...and save yourself the hassle?

Kevin Parkinson
"AT" <an*****@avwork.com> wrote in message
news:eg**************@TK2MSFTNGP11.phx.gbl...
I have the ASP page

<%@ Language=VBScript %>
<%
Option Explicit

Response.End

A = b
%>

On some servers I get parsing error on some I don't
Error says that variable A is not defined.

This is understandable but the script is not even supposed to get to A = b
line
because of Response.end

So there is some setting somewhere responsible for parsing.

Any ideas? please share.

--
_________________________
Anatoli Trifonov
Software Developer & Consultant
Minds are like parachutes - they only function when open.
--Thomas Dewar

Nov 18 '05 #2

P: n/a
AT
Try running this page with option Explicit and with response.End

Most probably it will not give error on your machine.

And then if you can explain me why I'd really appreciate it

--
_________________________
Anatoli Trifonov
Software Developer & Consultant
(415) 898-7300 x 404
Minds are like parachutes - they only function when open.
--Thomas Dewar

"Kevin Parkinson" <ke*************@shaw.ca> wrote in message
news:wSigc.159294$Ig.15027@pd7tw2no...
Anatoli:

At compile time, the VB compiler will tell you about the "A=b"
statement, because it's looking through the whole file( and you have Option Explicit on ) for errors. At runtime it would skip "A=b" because of
response.end, but not at compile time.

Why not put
Dim A as String = b
0r
Dim A as String
A=b
...and save yourself the hassle?

Kevin Parkinson
"AT" <an*****@avwork.com> wrote in message
news:eg**************@TK2MSFTNGP11.phx.gbl...
I have the ASP page

<%@ Language=VBScript %>
<%
Option Explicit

Response.End

A = b
%>

On some servers I get parsing error on some I don't
Error says that variable A is not defined.

This is understandable but the script is not even supposed to get to A = b line
because of Response.end

So there is some setting somewhere responsible for parsing.

Any ideas? please share.

--
_________________________
Anatoli Trifonov
Software Developer & Consultant
Minds are like parachutes - they only function when open.
--Thomas Dewar


Nov 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.