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

New Post: Weird Parameter Passing Behavior

0
0
Thanks so much for looking into this.

Here is a short code sample to elaborate on my second question.
Microsoft.ClearScript.V8.V8ScriptEngine se = new Microsoft.ClearScript.V8.V8ScriptEngine();
            //This line fails.
            var j = se.Evaluate("var d = 'this is d'; return d;");
            
            //Along with these.
            //se.Execute("var d = 'this is d';");
            //var j2 = se.Evaluate("return d;");

            //But these two work....
            //se.Execute("var d = 'this is d';");
            //var j1 = se.Script.d;
I understand the complications that VB introduces, especially with dynamic objects. Translating my project to C# is always in option - this library is worth the work - it would take a few days, though, so it is something I would like to refrain from if possible. Please let me know how it all works out, if there are any other code samples I can provide, or anything I can do to help!

-JC

Viewing all articles
Browse latest Browse all 2297