Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #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.
Reply With Quote
  #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.
Reply With Quote
  #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.

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 07:53 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.