By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,168 Members | 2,484 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,168 IT Pros & Developers. It's quick & easy.

Execute script code

P: n/a
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
Nov 21 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Take a look at
http://msdn.microsoft.com/library/en...ng06112001.asp

Cheers,
John Wadie

Nov 21 '05 #2

P: n/a
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

"John Wadie" <jo********@hotmail.com> wrote in message
news:4N**************@cpmsftngxa06.phx.gbl...
Take a look at
http://msdn.microsoft.com/library/en...ng06112001.asp
Cheers,
John Wadie

Nov 21 '05 #3

P: n/a
md
Take a look here:

http://www.west-wind.com/presentatio...ynamicCode.htm

Matt

"Dave Taylor" <no**********@processeng.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
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

"John Wadie" <jo********@hotmail.com> wrote in message
news:4N**************@cpmsftngxa06.phx.gbl...
Take a look at

http://msdn.microsoft.com/library/en...ng06112001.asp

Cheers,
John Wadie


Nov 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.