Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Evaluate a string expression
Message
 
To
All
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
Evaluate a string expression
Miscellaneous
Thread ID:
01154848
Message ID:
01154848
Views:
57
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
Next
Reply
Map
View

Click here to load this message in the networking platform