[Webinar] Streamline your web hosting managementRegister Today

x
  • 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?
0
csingh
Asked:
csingh
  • 2
1 Solution
 
csinghAuthor Commented:
Thanks in advance!
0
 
csinghAuthor Commented:
Adjusted points to 100
0
 
mcriderCommented:
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

         -or-

    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!



Cheers!
0

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