Differences

This shows you the differences between the selected revisions of the page.

2012-03-22 2012-03-24
version-less links to msdn (martin) msdn interwiki (martin)
Line 75: Line 75:
VBScript does not support catching exceptions, what is a common way of handling errors in examples for most other languages. VBScript does not support catching exceptions, what is a common way of handling errors in examples for most other languages.
-In case you need to use custom error handling, instead of aborting the script on error (the default for WSH), use ''[[http://msdn.microsoft.com/en-us/library/53f3k80h.aspx|On Error]]'' statement.+In case you need to use custom error handling, instead of aborting the script on error (the default for WSH), use ''[[msdn>53f3k80h|On Error]]'' statement.
-Use ''On Error Resume Next'' to disable default error handling. Then you need to query ''[[http://msdn.microsoft.com/en-us/library/sbf5ze0e.aspx|Err.Number]]'' after every statement to test for errors. You can revert to default error handling (aborting the script) using ''On Error GoTo 0''.+Use ''On Error Resume Next'' to disable default error handling. Then you need to query ''[[msdn>sbf5ze0e|Err.Number]]'' after every statement to test for errors. You can revert to default error handling (aborting the script) using ''On Error GoTo 0''.
<code vb> <code vb>

Last modified: by martin