Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 140
  • Last Modified:

error handling

Hello Guys,
                 I need some explanation on how error handling works. In my code I encountered a problem that arises from the fact that the error handler that I use works only once, the first time an error occurs. Because the error happens in a loop I need the error to be handled multiple times. How do I realize that?

Thank you,
serge
0
Autofreak
Asked:
Autofreak
1 Solution
 
Mike TomlinsonMiddle School Assistant TeacherCommented:
When an error is trapped, error trapping is actually turned off.  You must use a Resume statement to turn it back on.  If you return to your loop via a Goto statement then Error trapping is not turned back on and you will get the systems you have described above.
0
 
AutofreakAuthor Commented:
Cool!!!,
Thanks
0

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now