Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Evaluate a string expression
Message
De
20/09/2006 09:50:05
 
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01154848
Message ID:
01155514
Vues:
18
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform