Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Code evaluation in the fly
Message
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Code evaluation in the fly
Miscellaneous
Thread ID:
00695575
Message ID:
00695575
Views:
54
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...
The Life is Beautiful!

Programmer in
Delphi, VS.NET
MCP
Next
Reply
Map
View

Click here to load this message in the networking platform