473,320 Members | 1,831 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,320 software developers and data experts.

EVAL function in C#

Hello.

Is there an equivalent of the VBScript "Eval" and "Execute" statements in
C#?

Thanks in advance,

Mike
Nov 16 '05 #1
2 3847
take a look at this

http://www.odetocode.com/Code/80.aspx

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"MikeL" <Mi**********@inds.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hello.

Is there an equivalent of the VBScript "Eval" and "Execute" statements in
C#?

Thanks in advance,

Mike

Nov 16 '05 #2
Hi, John. Thanks for responding.

Wow, it works. I added "EvalToBool()".

Now I just need to figure out "Execute".

Thanks again,

Mike

"John Timney (ASP.NET MVP)" <ti*****@despammed.com> wrote in message
news:%2***************@TK2MSFTNGP15.phx.gbl...
take a look at this

http://www.odetocode.com/Code/80.aspx

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"MikeL" <Mi**********@inds.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hello.

Is there an equivalent of the VBScript "Eval" and "Execute" statements in
C#?

Thanks in advance,

Mike


Nov 16 '05 #3

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

Similar topics

7
by: robcarlton | last post by:
hi everybody I've written this function to make a list of all of an objects attributes and methods (not for any reason, I'm just learning) def list_members(obj) l = dir(obj) return map(lambda...
6
by: amohajer | last post by:
what does eval function do in javascript language and what are its usages?
12
by: Maurice | last post by:
Hi, is it possible to enter a string in code in VB.NET 2005 which will be executed as a codeline during runtime? i.e. I want to declare a new form depending on the string: "Dim frm as new...
2
by: bill | last post by:
In VB.NET 2005, is there an equivalent of the EVAL function available in MSAccess and javascript? I need a way to pass a dynamically generated string (like "2+2") to a function and return 4. ...
5
by: R | last post by:
Hi All, I'm using eval and arrays in foreach and have trouble with adding elements to them - I'm talking about the '' operator. My code is: // creates arrays with the names of columns in...
0
by: Zeba | last post by:
Hi, Can you tell me how does the Eval function know where to find EventID in the following code ? Also, isn't this Eval function same as the DataBinder.Eval ? But MSDN only shows Eval() to be...
1
by: shalini jain | last post by:
Hi, I am facing the problem with eval function. I want to know how to pass a function in eval() when we have to create the function itself. I would better explain my problem with the help of an...
8
by: sonet | last post by:
Many Language have eval function.The C have eval function? How to execute c code in c ? Can i execute c code from a variable(like perl's code ref)? Or i must do this job by using yacc & lex ? All...
6
by: RandomElle | last post by:
Hi there I'm hoping someone can help me out with the use of the Eval function. I am using Access2003 under WinXP Pro. I can successfully use the Eval function and get it to call any function with...
2
by: rdemarco | last post by:
Hi guys I'm trying to use the eval() function to run code that I have previously compiled via string concatenation. Some of it works, for example, I can set the focus to a combo box called...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.