VBScript Err Object Properties and Methods
[Property]
- Number
- Description
- Source
- HelpContext
- HelpFile
- Clear
- Raise
Example:
#1
On Error Resume Next Err.Raise 6 ' Raise an overflow error. MsgBox ("Error # " & CStr(Err.Number) & " " & Err.Description & " Source: " & Err.Source) Err.Clear ' Clear the error.
reference web:
https://msdn.microsoft.com/en-us/library/a3c123d4(v=vs.84).aspx
留言
張貼留言