Calculate Formula

  • Thread starter Thread starter Gálos Zsuzsa
  • Start date Start date
G

Gálos Zsuzsa

Hi all,
I need to calculate Formulas.

For example:
dim strFormula as string="25*(12-6)"

I ned a DotNet Function to calculate this Formula (25*(12-6)=150):

dim dblValue as double = 150

Does anyone know how can i do this?

thanks a lot

Zsuzsa
 
Hi Gálos

I have seen a lot of questions here for an "eval" function
dim strFormula as string="25*(12-6)"
I never saw a proper answer for this in this newsgroup.

But maybe you get a good link.
(That is why I translate your message to "eval")

Or you can search this newsgroup yourself for "eval" there where some
answers, but I never saw one from which I said, that is it.

Cor
 
Back
Top