Use JScript from code

Hello,

I have a few question about using JScript from code. In early versions this could be done by using the scripting runtime DLL by adding code and objects to a moudle and running the code after it.
my question are:
1. How can I do it with .net - I mean adding objects and code to a module and running it. is there a code example
2. Is there a way to parse the script before, or I must run it to know if it is written correctly
3. Is there a GUI component with syntax highlighting that I can include in my application

Thanks.

      
 


Answer this question

Use JScript from code

  • nunhuck

    Before 2.0 there was a perfectly good solution, Microsoft.Vsa, but that is now obsoleted without giving any good alternative.

    I don't know if it was to easy to use or if MS wanted to keep scripting to its paid partner program or whatever...


  • eng2chi

    1. Not supported on .NET

    2. You can use ICodeCompiler to compile the JScript source

    3. Not supported on .NET


  • AceHack

    well it is not supported but there is a hope in the following link:

    http://www.codeproject.com/csharp/cs-script_for_CP.asp#xx1309430xx



  • Use JScript from code