Murray Brown

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?

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

membership

This solution is only available to members.

To access this solution, you must be a member of Experts Exchange.

Have you downloaded NCalc?

ASKER

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

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

ASKER

Thanks very much

ASKER

I get the error "Type 'Expression' is not defined"