Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

adovbs.inc won't work

Status
Not open for further replies.

saroy71

Programmer
May 16, 2002
22
CA
I am trying to use adovbs.inc but it isn't working.
<!-- #INCLUDE FILE=&quot;adovbs.inc&quot; -->
This is how I am calling the file and it is in my root directory, etc. It can find the file but it gives me an error:
Error Type:
Microsoft JScript compilation (0x800A03F7)
Unterminated string constant
/mustangs/adovbs.asp, line 2, column 69
'--------------------------------------------------------------------
--------------------------------------------------------------------^


It appears it isn't reading those lines as comments. However, when I remove those lines from the file I get an error:

Error Type:
Microsoft JScript compilation (0x800A03EC)
Expected ';'
/mustangs/adovbs.asp, line 3, column 6
Const adOpenForwardOnly = 0
-----^


I cannot figure out why this is happening. It seems like it isn't reading the adovbs.inc file correctly. I even tried to change it to adovbs.asp but that did not help.

I hope you can. Thanks in advance.
Education is what you get from reading the small print.
Experience is what you get from not reading it.
 
ADOVBS.INC is a file that you can include in a script that is written in VBScript. Your ASP processor is trying to compile JScript. Usually it does that because your script used the language directive <% @ language=&quot;JScript&quot; %>. At any rate renaming the file to ADOVBS.INC will not help.

Usually you only need a dozen or so of the 200+ constants so you can create your own file in JScript and call it whatever you like.

Take a look at ADOVBS.INC in your text editor.
 
Thanks rac2,

Works great! Education is what you get from reading the small print.
Experience is what you get from not reading it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top