Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old June 29th, 2004, 04:07 AM
Authorized User
 
Join Date: Jun 2004
Location: , , India.
Posts: 68
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to silver_cuts Send a message via Yahoo to silver_cuts
Default what is "on error resume next"

Hi folks,

What does following statement means and how does it work?

"on error resume next"

does it work differently when written within a function/subroutine ??

what kind of errors are trapped by it ....

Sudhan.

__________________
--------------------------------------------------
Sudhan Kanitkar.
Everything Is In Our Hands.
  #2 (permalink)  
Old June 29th, 2004, 04:34 AM
Friend of Wrox
 
Join Date: Oct 2003
Location: Cochin, Kerala, India.
Posts: 463
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to madhukp
Default

This will ask the server to ignore the ASP error and continue interpret the next ASP command.

It is a very bad practice to use this in codes. Many of the errors will pass unnoticed. You may notice a big problem after a large amount of data is lost or so.

If you include this statement in a function, it will be applicable only to statements in that function.

You can re-enable errors after using this statement by using

ON ERROR GOTO 0

As far as possible try to avoid the use of this statement.
  #3 (permalink)  
Old June 29th, 2004, 04:38 AM
Authorized User
 
Join Date: Jun 2004
Location: , , India.
Posts: 68
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to silver_cuts Send a message via Yahoo to silver_cuts
Default

Hi Madhu,

thanks for that ...

Sudhan.



Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert Query Error & Run-Time Error 3022 DavidWE Access 1 July 31st, 2008 11:17 AM
Resume Uploading And Downloading sumith ASP.NET 1.0 and 1.1 Professional 0 May 24th, 2007 01:40 AM
the e of resume humayunlalzad BOOK: Beginning XML 3rd Edition 1 November 2nd, 2006 08:07 AM
On Error Resume Next? jaucourt Beginning VB 6 1 July 10th, 2003 06:31 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.