[Webinar] Streamline your web hosting managementRegister Today

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 125
  • Last Modified:

Run Time errors

Are there run time errors in VB? if yes how do we solve them?
  • 2
1 Solution
csinghAuthor Commented:
Thanks in advance!
csinghAuthor Commented:
Adjusted points to 100
Yes there are runtime errors that can occur in VB.  To deal with these, you need an error handler in effect for each procedure.

You can accomplish this by using:

    On Error Resume Next


    On Error Goto xxxx

When an error handler is in effect, you can check the states of the system variable "Err".

If Err is 0 then no error has occurred, otherwise, Err contains the error number of the error that occurred.

You can get the error message of the error by using x=Error$(Err)

Hope this helps!


Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

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