Execute script code

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

Dave Taylor

I'm writing VB.NET code that controls an on-stream X-ray analyzer for
determining elemental concentrations in slurry. The program retrieves X-ray
peak intensity values and evaluates a regression model to determine the
particular elemental concentration. Previously, I have done this in VB6 by
writing a mathematical parsing routine which can correctly evaluate an
expression like R0+R1*I[Fe]+R2*I[Cu]+R3*I[Mo]. The problem is, there are
occasions where I would like to have a bit more flexibility and include
IF...THEN type constructs and other programming elements.

So, is there a way in VB.NET to process small amounts of VB script code?
Even nicer, the ability to provide access to a particular scope of
variables. I know MS at one time licensed VBScript but it seemed like a lot
of overkill for what I'm looking to do.

Thanks

Dave Taylor
PERI
 
Thanks John, after I posted I continued searching and did run across that
and a few other articles regarding scripting in .NET.

Unfortunately, many of the articles about scripting in .NET appear to be old
(prior to VS 2003) and the documentation is sparse - calling it sparse is
being generous. I'm still unclear as to whether I have to license VSA like
VBA had to be licensed for inclusion into my program or whether it is rolled
into .NET...I did run the example from the article below, and it ran with
only a few issues...so there is obviously some scripting functionality,
though of course, now I'm thinking the IDE would be nice to incorporate as
well...now I'm thinking the scripting ability will have to wait for Version
3 of my program :-)

Anyway, thanks again.

Dave
 

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