Quantcast
Channel: ClearScript
Browsing all 2297 articles
Browse latest View live

New Post: Async/Await during script execution

Hello joshrmt, Async/Await is just convenient syntax for creating and consuming methods that use the callback-intensive Tasks API. Instead of returning a normal value, an async method returns a task...

View Article



New Post: Is it possible to validate script syntax before executing it?

Hi All, probably it's due to my lack of experience with this very useful library, but I was not able to find method or a set of methods to validate scripts syntax before running them. Something like...

View Article

New Post: Is it possible to validate script syntax before executing it?

Greetings! ClearScript generally does not expose script parsing as a separate function from script execution. The methods that execute script code report syntax errors as well. However,...

View Article

New Post: Is it possible to validate script syntax before executing it?

Thank for answer and HNY to everyone, I was also interested in JScript compilation facilities.... Just for a better understanding: is it a design choice to prevent syntax checking and script...

View Article

New Post: Is it possible to validate script syntax before executing it?

Hi Tomaso,​ is it a design choice to prevent syntax checking and script compilation from being called independently from script execution?​ Originally ClearScript supported only JScript and VBScript....

View Article


New Post: Is it possible to validate script syntax before executing it?

Thank you for the very clear and complete answer! Reading it I start thinking that I am simply misunderstanding the way ClearScript works and worrying about a problem that does not exist. I'd make an...

View Article

New Post: Is it possible to validate script syntax before executing it?

Hi Tomaso,​ hoMethod3("Three"); // the "dot" is missing - real syntax error​ There's no syntax error here; this line simply invokes a function named "hoMethod3". If no such function exists when the...

View Article

New Post: Is it possible to validate script syntax before executing it?

Ok, thank you very much for all the clarifications :)

View Article


New Post: Problem Calling VBScript Function

I have a very simple app at this time. I am developing in VB.NET (CLR 4.5) and using the VBScript Engine. My application is to be used for industrial process simulations so my .Net application will...

View Article


New Post: Problem Calling VBScript Function

Hello! We're having trouble reproducing your issue. We just ran this test program without any problems:Module ConsoleTest Sub Main() Using engine AsNew Microsoft.ClearScript.Windows.VBScriptEngine...

View Article

New Post: using JSON.parse in a script

Hi, I am trying to parse a json string as below (please let me know what i am doing wrong here) engine.ExecuteCommand("JSON.parse('{\"x\":1}');"); I get the following exception:...

View Article

New Post: using JSON.parse in a script

Hello! Unfortunately JScriptEngine currently does not support the JSON object. It is compatible with JScript 5.7, but the JSON object was added in JScript 5.8. We're going to fix this in the next...

View Article

New Post: Strong Name

One possibility is to keep a development key in the repository, and sign official releases with a key that isn't in the repository.

View Article


New Post: Problem Calling VBScript Function

I copied your code into my app and executed on a Windows form Button_Click and I get the same error as before. The InnerException says.Public member 'Main' on type 'VBScriptTypeInfo' not found. I am...

View Article

New Post: Running List ForEach using script

I have an existing List<string> which is passed into the engine as an object.engine.AddObject("Datas", datas); This is the script that i want to executeDatas.ForEach(function(d){ //read the...

View Article


New Post: Problem Calling VBScript Function

Hi again! We've reproduced this issue, and you nailed it - in our previous tests we used a newer ClearScript version (not yet released) where this issue is already fixed. We'll get the fix out ASAP....

View Article

New Post: Strong Name

Hi Dan15, Actually, we don't release official binaries. What we've decided to do is add optional support for building strong named assemblies using a key pair supplied by the builder. Cheers!

View Article


New Post: Running List ForEach using script

Greetings!​ I guess that the javascript function is not transform into C# Action?​ Not automatically. ClearScript provides C#-like type inference, where method overloads are selected according to the...

View Article

New Post: Running List ForEach using script

By the way, for a more generic and transparent solution, you could expose a helper class that provides script-specific list extensions:publicstaticclass ListExtensions { publicstaticvoid...

View Article

New Post: Running List ForEach using script

Thank a lot! The extension method works!

View Article
Browsing all 2297 articles
Browse latest View live




Latest Images