Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: RE: On Error


Message #1 by =?Big5?B?s6/EUaX+?= <lawrence@t...> on Wed, 27 Jun 2001 15:54:42 +0800
MS annouanced there's no 'On error goto' in VBScript.

sorry for that.



You have to try to classify your Errors..

	if error in DB connection, you can capture them

		by ADO error

	if ASP compilation error



	if....

	then redirect them to Error Handler.





-----Original Message-----

From: rg1@h... [mailto:rg1@h...]

Sent: Tuesday, April 24, 2001 3:34 AM

To: ASP Web HowTo

Subject: [asp_web_howto] On Error





Hello.



In VBScript, I know there's an "On Error Resume Next". I need an "On Error

GoTo ErrorHandler". When I use "On Error GoTo ErrorHandler" I get a 

compilation syntax error. Is there any way in VBScript that I can bypass 

the rest of the code after encountering an error, and go directly to the 

error handling routine?



TIA



Rita






  Return to Index