473,395 Members | 2,446 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Execute script code

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
3 1312
Take a look at
http://msdn.microsoft.com/library/en...ng06112001.asp

Cheers,
John Wadie

Nov 21 '05 #2
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Tomasz Ludwiniak | last post by:
Hi, I've little problem... I try to execute asp file ( which return XML file ) and use the result it in my asp script : set xml = Server.CreateObject("MSXML2.DOMDocument") xml.async=false...
4
by: paul dallaire | last post by:
HI! I want to execute a link witch is in JavaScript, How do we execute this in asp server side if possible? Basically I don't want anyone to see this link in the code view. this is the link...
3
by: Lyle Fairfield | last post by:
MS-SQL Server utilities Enterprise Manager and Query Analyzer will model almost any MS-SQL object as a simple script file with a default ".sql" extension. But how to "run these files? They are...
5
by: batham | last post by:
Hi Gurus, How can I execute a script during runtime. Here is my code, so how do I execute the new script during runtime which should be a part of the 'topDiv'. Thanks Help is appreciated. -...
0
by: oliver | last post by:
QUESTION: How to access an object embedded in a UserControl through Javascript file? Another way to ask this question: How to execute script from a UserControl, accessing other objects in that...
9
by: sohan | last post by:
Hi, I want to know how to connect and execute a db2 query from inside a UNIX shell script. Details: We have a unix shell script. We need to execute multiple db2 sql queries from this shell...
19
by: citronelu | last post by:
Is it possible to execute a binary string stored within a python script as executable code ? The script is run under Windows, and the binary code (a full executable file) is stored in a variable...
4
by: Chr1s | last post by:
How do I execute a crontab command using php (not CLI) as user Joe? I don't have any problem getting output from commands such as 'ls' using passthru and exec but I am stumped with crontab. ...
8
by: M.L. | last post by:
Hello. I created a form using JS validation with the form tag as follows: <form name="form1" action="dynaform.php" method="post" onsubmit="return pvg_sub();"> The js validation script sends...
2
by: Bogdan | last post by:
Hi, I'd like to display (i.e. make visible) a label after a submit button is clicked but only if the client-side validation is successful. If I did not care about the validation then I'd simply...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.