Is scripting possible from VB.NET program?

  • Thread starter Thread starter Dave Taylor
  • Start date Start date
D

Dave Taylor

I have a VB.NET program that does flowsheet simulation for mineral
processing. I would like the user to be able to write some rules for nodes
within the flowsheet, ideally something like VBScript or something like
that. Is there an easy way to do that in dotnet? I've looked at WSH etc,
but that looks more like files, desktop shortcuts, etc...not really
scripting from within a program. And VBA appears to have major licensing
requirements (this is a one-off program made for a specific
customer.)....other ideas?

Thanks

Dave Taylor
PERI
 
Dave Taylor said:
I have a VB.NET program that does flowsheet simulation for mineral
processing. I would like the user to be able to write some rules for nodes
within the flowsheet, ideally something like VBScript or something like
that. Is there an easy way to do that in dotnet? I've looked at WSH etc,
but that looks more like files, desktop shortcuts, etc...not really
scripting from within a program. And VBA appears to have major licensing
requirements (this is a one-off program made for a specific
customer.)....other ideas?

How about VB?

..NET supports runtime code generation, compilation, loading and invocation.
Better than scripting.

The VB compiler is included in the .NET runtime (not just the SDK).

Here's some references to get you started:

http://www.codeproject.com/dotnet/CompilingWithCodeDom.asp
http://www.codeproject.com/dotnet/CodeFromCode.asp

David
 
Hi,

http://www.codeproject.com/dotnet/DotNetScript.asp

Ken
---------------
I have a VB.NET program that does flowsheet simulation for mineral
processing. I would like the user to be able to write some rules for nodes
within the flowsheet, ideally something like VBScript or something like
that. Is there an easy way to do that in dotnet? I've looked at WSH etc,
but that looks more like files, desktop shortcuts, etc...not really
scripting from within a program. And VBA appears to have major licensing
requirements (this is a one-off program made for a specific
customer.)....other ideas?

Thanks

Dave Taylor
PERI
 
Hi Dave

If your client can do JScript, then you could add some simple scripting
capabilities by using the JScript.Net eval() functionality. There are a
couple of posts in the group about it - Patrick Phillipot posted about this
ages ago, I did a few weeks ago...

Let me know if you need more information.

Nigel Armstrong
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top