Link to home
Start Free TrialLog in
Avatar of Murray Brown
Murray BrownFlag for United Kingdom of Great Britain and Northern Ireland

asked on

VB.net Calculate value of formula held in a string

Hi

I have a variable strFormula, which holds the string version of a formula:
eg strFormula = "10*6-(53.7*2.6)"
eg strormula = "22-(55.7/2) + 78.9"
How do I  calculate the value of this formula?
ASKER CERTIFIED SOLUTION
Avatar of Rgonzo1971
Rgonzo1971

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Murray Brown

ASKER

Hi
I get the error "Type 'Expression' is not defined"
Avatar of Rgonzo1971
Rgonzo1971

Have you downloaded NCalc?
I've requested that this question be closed as follows:

Accepted answer: 0 points for murbro's comment #a40071952

for the following reason:

Thanks very much
Please see a further related question
https://www.experts-exchange.com/questions/28435897/ASP-net-VB-net-Operation-could-destabilize-the-runtime.html
Thanks very much