M
Marco Trapanese
Hi!
In my program the user may write a math function into a textbox, for
example:
sqrt(sin(A*3))^cos(B+5)
where A and B are 'tags' for other textboxes (I replace A and B with
csng(text1.text) and csng(text2.text)). I need to evaluate it at
run-time. I guess I might use the CodeDom class.
I tried this code:
http://www.microsoft.com/italy/msdn/risorsemsdn/community/tips/0612.mspx
(the comments are in Italian)
and it works fine but I can't use variable or controls already present
in my project.
Could anyone provide me a simple example to achieve that?
Thank you
Marco / iw2nzm
In my program the user may write a math function into a textbox, for
example:
sqrt(sin(A*3))^cos(B+5)
where A and B are 'tags' for other textboxes (I replace A and B with
csng(text1.text) and csng(text2.text)). I need to evaluate it at
run-time. I guess I might use the CodeDom class.
I tried this code:
http://www.microsoft.com/italy/msdn/risorsemsdn/community/tips/0612.mspx
(the comments are in Italian)
and it works fine but I can't use variable or controls already present
in my project.
Could anyone provide me a simple example to achieve that?
Thank you
Marco / iw2nzm