Microsoft Operations Manager |
The GetErrormethod gets the most recent error description for the Utilityobject.
[VBScript] Utility.GetError()
None
String
The following example shows how to get an error after a function fails.
[VBScript]
Dim objUtil
Dim strErrorMsg
Set objUtil = CreateObject("OpScrUtil.Utility")
If Not(objUtil.Sleep(5)) Then
strErrorMsg = "Sleep failed. The error is " &
objUtil.GetError()
End If
Windows NT/2000: Requires Windows 2000 or later
Version: Requires MOM 1.0 SP1
Did you find this information useful? Please send your suggestions and comments about the documentation to momsdk@microsoft.com.