Evaluate Mathematical Expressions Passed As A String
code will return 11 from the string "(2 * 3) + 5"
Script Control to your Form. (choose Project->Components, check the Microsoft
Script Control CheckBox and Press OK. Then add the control to your
If you don't have this control, you can download it from http://msdn.microsoft.com/scripting/
'replace the "(2 *
3) + 5" with the string you want to evaluate
* 3) + 5"))