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

Sudhan.


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

ON ERROR GOTO 0

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

Sudhan.



All times are GMT -4. The time now is 02:23 PM.

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