?
Solved

On Error Goto Label

Posted on 2003-03-03
6
Medium Priority
?
1,516 Views
Last Modified: 2012-05-04
Hi,

Can anyone please tell me why in ASP On Error GoTo Label does not works. I know in asp only resume next and goto 0 works.


thanks

regards

santosh kale
0
Comment
Question by:santoshkale
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
6 Comments
 
LVL 5

Expert Comment

by:gator4life
ID: 8062535
Is this the way you are using the statement (where "ErrorHandler" is the line argument for the On Error statement)?

<%
     ' SOME ASP CODE

     On Error Goto ErrorHandler

     ' SOME MORE ASP CODE

     ErrorHandler:

          ' ERROR HANDLING CODE
%>

Could you post the code that is having a problem?

gator4life
(chomp, chomp)
0
 
LVL 2

Accepted Solution

by:
somchaiu earned 200 total points
ID: 8062714
In VBScript there are only "Goto 0" and "Resume Next" supported. It is VBScript limitation. VBScript also has no label, no "Goto" (only Goto 0 is available.). The On Error Goto somewhere has nowhere to jump.
0
 
LVL 5

Expert Comment

by:gator4life
ID: 8062924
somchaiu -

You are of course right.  Thanks!  Sometimes, I think I know too many languages for my own good...now I'm even starting to mix the VB stuff with the VBScript stuff. Appreciate the clarity. :-)

gator4life
(chomp, chomp)
0

Featured Post

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

CTAs encourage people to do something specific to show interest in your company, product or service. Keep reading to learn why CTAs should always be thought of as extremely important, albeit small, sections of websites.
When the s#!t hits the fan, you don’t have time to look up who’s on call, draft emails, call collaborators, or send text messages. An instant chat window is definitely the way to go, especially one like HipChat. HipChat is a true business app. An…
This video teaches users how to migrate an existing Wordpress website to a new domain.
The viewer will learn how to count occurrences of each item in an array.
Suggested Courses

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question