ADOVBS processing error

B

Bob Barrows [MVP]

Neil said:
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.
 
N

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
 
D

Dave Anderson

Neil said:
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:

<!-- METADATA TYPE="typelib" UUID="00000205-0000-0010-8000-00AA006D2EA4"
NAME="Microsoft ActiveX Data Objects 2.5 Library" -->
<!-- METADATA TYPE="typelib" UUID="00000206-0000-0010-8000-00AA006D2EA4"
NAME="Microsoft ActiveX Data Objects 2.6 Library" -->
<!-- METADATA TYPE="typelib" UUID="EF53050B-882E-4776-B643-EDA472E8E3F2"
NAME="Microsoft ActiveX Data Objects 2.7 Library" -->
<!-- METADATA TYPE="typelib" UUID="2A75196C-D9EB-4129-B803-931327F72D5C"
NAME="Microsoft ActiveX Data Objects 2.8 Library" -->
 
N

Neil Gould

Recently said:
Neil Gould said:
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
 
N

Neil Gould

Recently said:
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
 
N

Neil Gould

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

<!-- METADATA TYPE="typelib"
UUID="00000205-0000-0010-8000-00AA006D2EA4" NAME="Microsoft ActiveX
Data Objects 2.5 Library" --> <!-- METADATA TYPE="typelib"
UUID="00000206-0000-0010-8000-00AA006D2EA4" NAME="Microsoft ActiveX
Data Objects 2.6 Library" --> <!-- METADATA TYPE="typelib"
UUID="EF53050B-882E-4776-B643-EDA472E8E3F2" NAME="Microsoft ActiveX
Data Objects 2.7 Library" --> <!-- METADATA TYPE="typelib"
UUID="2A75196C-D9EB-4129-B803-931327F72D5C" NAME="Microsoft ActiveX
Data Objects 2.8 Library" -->
Thanks, Dave. I'll keep this in mind.

Neil
 
B

Bob Barrows [MVP]

Neil said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top