it's not possible to calculate formulas by this way.... either you have to parse the arithmetic expression (but you don't want) or you use clientside scripting: JavaScript offers a powerful function named "eval" ...
There are a couple ways of doing something like this. You can import the Excel Namespace and use the functions in Excel to caculate this. That may be an over kill. But it is probably the easiest way. The second way would be to use reflection. This can be tricky
if you are not familure with reflection. The third is to use this app that I came across the other day. I don't know if it works but it would probably be your best bet. http://www.codeproject.com/dotnet/evaluator.asp If you need anything else just e-mail me.
eQuin0x
Member
140 Points
28 Posts
Int Casting
Dec 15, 2003 05:38 AM|LINK
eQuin0x
occcy
Member
95 Points
19 Posts
Re: Int Casting
Dec 15, 2003 02:45 PM|LINK
nberardi
Star
11233 Points
2352 Posts
Re: Int Casting
Dec 15, 2003 03:07 PM|LINK