Code Script .co.uk

Home | Scripts | Tutorials | Disclaimer | Sitemap | Contact

   Error Handling
 

Vbs / Error Handling

'Turn on error handling
On Error Resume Next

'Catch error
If Err.Number <> 0 Then

 Wscript.Echo Err.Description

End If

'Clear error variable
Err.Clear

'Turn off error handling
On Error GoTo 0





Please note that a disclaimer applies to any code on this page.
 
   Actions
  Go Back
  Bookmark
  Print Page


   Menu
 
- Links
- Reference
- Script Editors
- Tutorials
- Vbscript