ASP scripting query

by Mike Henden <mike.henden(at)xtra.co.nz>

 Date:  Sun, 29 Jul 2001 10:29:44 +1200
 To:  HWG techniques <hwg-techniques(at)mail.hwg.org>
  todo: View Thread, Original
Hello O Great Ones...

I'm in the middle of compiling my very first ASP page (so I'm really 
new at this kind of thing) and am currently trying to eliminate the 
errors in my ASP scripting.

The ASP script that I am using is based on code from an ASP tutorial 
that I found on line. I have copied the code and edited it to suit my 
needs. Basically what I am trying to do is search a database of 
publications (nothing more, nothing less) by author, name of 
publication, publisher and year or publication. However the process 
is getting somewhat fraught...

When I first attempted to run my script I got the following error:

	Microsoft VBScript compilation error '800a0409'
	Unterminated string constant
	/auckland/booklist3.asp, line 10

	Caption = "A list of all the publications
	---------------------------------------------------^

The problem was found at the start of the next line (obviously the 
line in question was 'unterminated'. When I took the "=>" (arrow) out 
and ran the two lines together the script would run until it struck 
the next "=>". No problem I thought. Whip all of the "=>"s out of the 
script and run everything on and everything will be fine...

(incidentally -- what do these 'arrows' (=>) mean?)

So I did this and ran the script again. Then I got this message:

	Microsoft VBScript compilation error '800a03ee'
	Expected ')'
	/auckland/booklist3.asp, line 249

	response.write(vbnewline & "<tr><td>" & RS("Title") & 
"</td><td>" & RS("Author") &
"</td><td> & RS("PublisherName") & "</td><td> & RS("YearofPublication")
----------------------------------------------------------------------------------------------------^

The text wrapping has messed things up a bit, but basically the way 
the message appeared in the browser window the "^" pointed to the "P" 
in the words "PublishersName"

My first thought was to check the as the same syntax had worked for 
"Title" and Author" I had better check the database file and make 
sure that I had got the name right -- which I had so it isn't that...

Can anyone shed any light on this error, what it means and what I 
need to do to fix it...

thanks in advance...

MIKE


-- 
=====================================================

Mike Henden Design
   Tel 64 4 565 1916 or 025 419 273
   Fax 64 4 565 1916

http://www.mhdesign.co.nz

=====================================================

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA