Quantcast
Channel: ClearScript
Viewing all articles
Browse latest Browse all 2297

Commented Unassigned: On Error Resume Next in VBScript [97]

0
0
I have previously used the MSScriptControl COM object and have switched to ClearScript. The problem I am seeing, currently, is that whatever implementation ClearScript uses doesn't honor the On Error Resume Next and simply crashes out, throwing an error.

Is there a way to have ClearScript honor this error handling or something I can do to prevent it from crashing?
Comments: We're not seeing this, and as far as we can tell the host has no control over this behavior. Note however that VBScript appears to reset the global `On Error` state for each invocation of the engine, so if you're invoking the engine multiple times, you probably want to insert "On Error Resume Next" at the beginning of each script. Can you confirm that doing so resolves your issue?

Viewing all articles
Browse latest Browse all 2297

Latest Images

Trending Articles





Latest Images