SetErrorFormat

SetErrorFormat(format as Integer)

format
0
Old format, provided for compatibility with earlier versions only.
1
New format, provides more information in the Visual Basic and VBScript Err object. This format is recommended.

This method allows you to select an error message format.