Hi again,
It looks like the failures in the code samples above are caused by the use of JavaScript
Also, JavaScript statements such as
By the way, we'll post a fix for the VB.NET issue very soon.
Cheers!
It looks like the failures in the code samples above are caused by the use of JavaScript
return
statements outside of a function:engine.Evaluate("return d;"); // error engine.Evaluate("d"); // OK
var
don't have values, but expressions do, so if you'd like your script to return a value, make sure it ends with an expression:engine.Evaluate("var d = 123"); // returns no value (undefined) engine.Evaluate("var d = 123; d"); // returns 123
Cheers!