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.htmhttp://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