Forum Discussion
murugans1011
10 years agoRegular Contributor
hi
log.LockEvents() only locks the events being posted in TestLog. To handle specfic error u can use something lik this in onlogerror event
log.LockEvents() only locks the events being posted in TestLog. To handle specfic error u can use something lik this in onlogerror event
Sub GeneralEvents_OnLogError(Sender, LogParams)
If (LogParams.MessageText = "Object not found") then
' It is an expected error. 'handle error here
' Perform actions that handle this error in the special way
else
'do operation
End If
End Sub
See for more
u can also disble log being posted using
Log.enable=False in event handler
To handle errors in scripts see for more info
Related Content
Recent Discussions
- 3 hours agoSubhraDas
- 22 hours agotramuntana