googleid_118035
10 years agoContributor
Solved
Cant we give partial of that message to check whether its occurred or not?
Hi All, Currently i am using onlogerror event handler as below. -------------------------- function GeneralEvents_OnLogError(Sender, LogParams){ if (LogParams.MessageText == ...
- 10 years agoHi I think You are looking for somthing like this
function GeneralEvents_OnLogError(Sender, LogParams){
var erorStr = 'My own text.. ';
if (LogParams.MessageText.indexOf('object does not exist')>-1) {
LogParams.MessageText = erorStr ;
// LogParams.FontColor = clMaroon;
}
}
indexOf is j-script, selecting string within string
/Jaya-wewa (cheers)