p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Classic ASP Basics (http://p2p.wrox.com/forumdisplay.php?f=61)
-   -   what is "on error resume next" (http://p2p.wrox.com/showthread.php?t=14770)

silver_cuts June 29th, 2004 04:07 AM

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 ....


madhukp June 29th, 2004 04:34 AM

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


As far as possible try to avoid the use of this statement.

silver_cuts June 29th, 2004 04:38 AM

Hi Madhu,

thanks for that ...


All times are GMT -4. The time now is 07:24 PM.

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