Here is a C# article that describes how to compile on the fly...
http://www.codeproject.com/csharp/runtime_eval.asp >I want to do something like this:
>
>sCode="alert('hi')"
>
>oEngine.Run(sCode)
>
>But with VB.NET
>
>I read the MSDN article Scripts happends .NET available in the MSDN help, and download the code, etc... But i don't can figure how do this...
>
>I need add a lot of custom NameEspaces (i.e. use the functions of VFP toolkit), and evaluate SIMPLE commands (like Year(MyDateVar)) in the fly, return the value and used it.
>
>I need it for a dinamic web forms generator, and this use a lot of custom VFP functions made by the user...
>
>So, in short, i like to do something like:
>
>Dim oEngine As New Microsoft.VisualBasic.Vsa.VsaEngine()
>
>With oEngine
> .RootMoniker = "GyGSoftware://www.gygsoftware.com"
> .Site=new ??? How do it
> 'Add here the line code
> .Compile()
> ' How get the value of a variable???
>End With
>
>Thanks for your time...
- Jayesh