Hi everyone,
Why isn't anyone telling him the real deal directly? Is it because, it's too obvious? *Shake Head*
Aarti: Good attempt though :)
U@007: The only string you can convert to a double is a direct number such as 1.2, 5.6, 7.8, etc. What you are trying to convert to a double is not a simple string, it is an 'expression'. You cannot directly convert, such an expression into a double. You need to write a class to evaluate the expression and returns the result as a double. Does it make sense? Is this what you are trying to achieve? If so, try reading the below link and addressing your problem in that aspect.
Runtime C# Expression Evaluator[
^]
http://csharpeval.codeplex.com/[
^]
Evaluate C# Code (Eval Function)[
^]
Hope this helps, Regards