Re: ADOVBS processing error

Re: ADOVBS processing error

am 23.04.2008 17:21:42 von McKirahan

"Neil Gould" wrote in message
news:#w2sA8UpIHA.3548@TK2MSFTNGP06.phx.gbl...
> Hi,
>
> In debugging an ASP script, I receive the error message:
> --------------------------------------------------------
> Microsoft VBScript compilation error '800a0411'
>
> Name redefined
>
> /test/config/include/ADOVBS.INC, line 14
>
> Const adOpenForwardOnly = 0
> -------^
>
>
> What is redefining the Name?
>
> Is there some place to clarify such error messages?

"adOpenForwardOnly" is declared twice -- somewhere.

Look for another
Const adOpenForwardOnly = 0
or (unlikely)
Dim adOpenForwardOnly

Did you include the file twice?
Does the include file declare it twice?
Does another include declare it?

Re: ADOVBS processing error

am 23.04.2008 17:23:54 von reb01501

Neil Gould wrote:
> Hi,
>
> In debugging an ASP script, I receive the error message:
> --------------------------------------------------------
> Microsoft VBScript compilation error '800a0411'
>
> Name redefined
>
> /test/config/include/ADOVBS.INC, line 14
>
> Const adOpenForwardOnly = 0
> -------^
>
>
> What is redefining the Name?
>
> Is there some place to clarify such error messages?
>
> TIA
>
Create a new asp page, put this code into it and run it:

<%
Const adOpenForwardOnly = 0
Const adOpenForwardOnly = 0
%>

What error do you get? Does this perhaps provide a clue as to what is
going on in the page you are having a problem with?

In case you need to be beaten with a clue-stick: look for another place
in your code where you (or whoever wrote the code) defined that
constant.

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.

ADOVBS processing error

am 23.04.2008 17:27:55 von Neil Gould

Hi,

In debugging an ASP script, I receive the error message:
--------------------------------------------------------
Microsoft VBScript compilation error '800a0411'

Name redefined

/test/config/include/ADOVBS.INC, line 14

Const adOpenForwardOnly = 0
-------^


What is redefining the Name?

Is there some place to clarify such error messages?

TIA

Neil

Re: ADOVBS processing error

am 23.04.2008 18:01:37 von Dave Anderson

Neil Gould wrote:
> Hi,
>
> In debugging an ASP script, I receive the error message:
> --------------------------------------------------------
> Microsoft VBScript compilation error '800a0411'
>
> Name redefined
>
> /test/config/include/ADOVBS.INC, line 14
>
> Const adOpenForwardOnly = 0
> -------^
>
>
> What is redefining the Name?
>
> Is there some place to clarify such error messages?

If you have any of the following lines in your global.asa file, you will get
such a message upon including ADOVBS.INC:









--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms.

Re: ADOVBS processing error

am 24.04.2008 00:43:46 von Neil Gould

Recently, McKirahan posted:

> "Neil Gould" wrote in message
> news:#w2sA8UpIHA.3548@TK2MSFTNGP06.phx.gbl...
>> Hi,
>>
>> In debugging an ASP script, I receive the error message:
>> --------------------------------------------------------
>> Microsoft VBScript compilation error '800a0411'
>>
>> Name redefined
>>
>> /test/config/include/ADOVBS.INC, line 14
>>
>> Const adOpenForwardOnly = 0
>> -------^
>>
>>
>> What is redefining the Name?
>>
>> Is there some place to clarify such error messages?
>
[..]
>
> Did you include the file twice?
>
Thanks. This was the problem, though not immediately obvious; ADOVBS.INC
was included in a file that was included in another .ASP script.

Best,

Neil

Re: ADOVBS processing error

am 24.04.2008 00:45:49 von Neil Gould

Recently, Bob Barrows [MVP] posted:
>>
> Create a new asp page, put this code into it and run it:
>
> <%
> Const adOpenForwardOnly = 0
> Const adOpenForwardOnly = 0
> %>
>
> What error do you get? Does this perhaps provide a clue as to what is
> going on in the page you are having a problem with?
>
> In case you need to be beaten with a clue-stick: look for another
> place in your code where you (or whoever wrote the code) defined that
> constant.
>
That would be obvious, and easy to track down. But, as I didn't write
ADOVBS.INC, the problem wasn't as obvious as that. McKirahan got it right.

Neil

Re: ADOVBS processing error

am 24.04.2008 00:46:49 von Neil Gould

Recently, Dave Anderson posted:

> Neil Gould wrote:
>> Hi,
>>
>> In debugging an ASP script, I receive the error message:
>> --------------------------------------------------------
>> Microsoft VBScript compilation error '800a0411'
>>
>> Name redefined
>>
>> /test/config/include/ADOVBS.INC, line 14
>>
>> Const adOpenForwardOnly = 0
>> -------^
>>
>>
>> What is redefining the Name?
>>
>> Is there some place to clarify such error messages?
>
> If you have any of the following lines in your global.asa file, you
> will get such a message upon including ADOVBS.INC:
>
>
>
Thanks, Dave. I'll keep this in mind.

Neil

Re: ADOVBS processing error

am 24.04.2008 01:16:12 von reb01501

Neil Gould wrote:
> Recently, Bob Barrows [MVP] posted:
>>>
>> Create a new asp page, put this code into it and run it:
>>
>> <%
>> Const adOpenForwardOnly = 0
>> Const adOpenForwardOnly = 0
>> %>
>>
>> What error do you get? Does this perhaps provide a clue as to what is
>> going on in the page you are having a problem with?
>>
>> In case you need to be beaten with a clue-stick: look for another
>> place in your code where you (or whoever wrote the code) defined that
>> constant.
>>
> That would be obvious, and easy to track down. But, as I didn't write
> ADOVBS.INC, the problem wasn't as obvious as that. McKirahan got it
> right.
>
Actually, he said the same thing i did, just in a different way

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"