473,587 Members | 2,508 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Dynamic Expression Evaluation

Hi All,

How do I dynamically evaluate expressions in VB.Net?

Thanks in advance

Narayanan Sankaranarayana n
Jul 21 '05 #1
2 2198
Nothing built in. You can either use CodeDOM to generate assemblies on the
fly (difficult) or use JScript.NET instead, which has a built-in dynamic
evaluator.

You can also use the MS Script control to evaluate VBScript/JScript or any
other ActiveX hosted language in your computer, such as ActivePython or
ActivePerl.
--
_______________ _____
Klaus H. Probst, MVP
http://www.vbbox.com/
"Narayanan Sankaranarayana n" <ns*****@breakt hroughstv.com> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
Hi All,

How do I dynamically evaluate expressions in VB.Net?

Thanks in advance

Narayanan Sankaranarayana n

Jul 21 '05 #2
Nothing built in. You can either use CodeDOM to generate assemblies on the
fly (difficult) or use JScript.NET instead, which has a built-in dynamic
evaluator.

You can also use the MS Script control to evaluate VBScript/JScript or any
other ActiveX hosted language in your computer, such as ActivePython or
ActivePerl.
--
_______________ _____
Klaus H. Probst, MVP
http://www.vbbox.com/
"Narayanan Sankaranarayana n" <ns*****@breakt hroughstv.com> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
Hi All,

How do I dynamically evaluate expressions in VB.Net?

Thanks in advance

Narayanan Sankaranarayana n

Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2688
by: Simon Wigzell | last post by:
A client wants have acess to an online databases records controlled by group strings and evaluation strings e.g., each use would have in his client record a group string like this: And each record in a database would have an evaluation string like this : ( OR OR OR ) AND OR ) etc.
31
3667
by: NickName | last post by:
/* goal: dynamic evaluation of table row platform: sql 2000 */ use northwind; declare @tbl sysname set @tbl = 'customers' EXEC('select count(*) from ' +@tbl)
1
3878
by: Philippe Lang | last post by:
Hello, Imagine we have the following kind of table, with two values (a and b), and a varchar (f) representing an expression. ---------------------------------- CREATE TABLE public.test ( id serial NOT NULL, a int4, b int4,
4
2568
by: Frank Wallingford | last post by:
Note: For those with instant reactions, this is NOT the common "why is i = i++ not defined?" question. Please read on. I came across an interesting question when talking with my colleagues. According to the standard, most operators evaluate their operands in an unspecified order. This means that in code like this: f() + g()
8
1597
by: manan.kathuria | last post by:
hi all , the expression in question is ++i&&++j||++k most sources say that since the result of the || operation is decided by the LHS itself , the right side is not computed my point of thinking is that since the unary operator has higher precedence than || , it will be evaluated before || in any
35
1549
by: A Jafarpour | last post by:
Hi everyone, hope someone can tell if there is any way to, dynamically, build an statement and then call some functions to execute the statement. I know examples always help, so here what I am trying to accomplish: Dim myStatement as String myStatement = "Dim result as integer result= 2 * 3" now is there any way to actually let a program...
8
1753
by: Brian Blais | last post by:
Hello, I have a string input from the user, and want to parse it to a number, and would like to know how to do it. I would like to be able to accept arithmetic operations, like: '5+5' '(4+3)*2' '5e3/10**3' I thought of using eval, which will work, but could lead to bad security problems
21
2385
by: Steven T. Hatton | last post by:
I'm trying to improve my formal understanding of C++. One significant part of that effort involves clarifying my understanding of the vocabulary used to describe the language. This is from the C++ Standard: "" "...sequence of operators and operands that specifies a computation...". That means to me that an expression can be...
2
401
by: Tim Johnson | last post by:
I'm having trouble understanding this part of the expression evaluation rules ('6.5 Expressions', second item, C99 spec; the C++ wording is presumably identical): What precisely does the second part of this statement mean? The example states that "a = i" is invalid. But what about, for example: a = (b = c) || (c = d);
32
3285
by: silpau | last post by:
hi, i am a bit confused on expression evaluation order in expressions involving unary increment.decrement operators along with binary operators. For example in the following expression x += i + j + k++;
0
8216
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8349
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7974
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6629
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5395
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3845
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3882
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2364
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1455
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.