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

New Post: How to exit the vbscript code at runtime

$
0
0
Hi,

Unfortunately i am not able to suppress the popup displaying "Script execution interrupted by host" :

I have tried following codes:

Code1:
        try
        {
           Script.engine.Interrupt(); 

        }
        catch (ScriptInterruptedException)
        {
        }

Code2:
(Unable to compile : Says "Microsoft.ClearScript.ScriptEngine does not contain defination for current)
engine.Script.Quit = new Action(() => ScriptEngine.Current.Interrupt());
try {
engine.Execute(util.Quit);
}
catch (ScriptInterruptedException) {
}

please help!

Viewing all articles
Browse latest Browse all 2297

Trending Articles