Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Evaluate a string expression
Message
From
20/09/2006 09:50:05
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01154848
Message ID:
01155514
Views:
17
Patrice,

You might want to read these two articles (there are probably loads more, but I just happened to have these two book-marked):

http://www.west-wind.com/presentations/DynamicCode/DynamicCode.htm
http://www.codeproject.com/csharp/runtime_eval.asp

~~Bonnie



>Hi,
>
>I would like to know if there a way in VB.Net 2005 to evaluate as string expression.
>
>Ex :
>
>
>Dim Test as String
>Dim Result as integer
>
>Test = "2 + 5"
>
>Result = EvaluateFonction(Test)
>
>
>Ex 2 :
>
>Dim Test as String
>Dim Result as integer
>dim iNumber as integer
>
>iNumber = 3
>
>Test = "iNumber * iNumber"
>
>Result = EvaluateFonction(Test)
>
>
>The thing I want to know is : it is exists a "EvaluateFonction" to evaluate any king of operation, not only mathematical one.
>
>thx
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform