By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,101 Members | 1,335 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,101 IT Pros & Developers. It's quick & easy.

How to get string formula output

P: 1
Hi All,

I just wanna ask one simply question..
Is there anyone know how to calculate the output value from a string like
that??

Expand|Select|Wrap|Line Numbers
  1. Dim strFormula As String = "20+30+(100+20+30)*0.1"
  2. Dim douOutput As Double
  3.  
  4. douOutput = Function(strFormula)
what can i do to calculate the dynamic formula string and put it into the
variable "douOutput" ??

Thanks All,
Jun 12 '14 #1
Share this Question
Share on Google+
1 Reply


100+
P: 299
Expand|Select|Wrap|Line Numbers
  1.         Dim strForumla As String = 20 + 30 + (100 + 20 + 30) * 0.1
  2.         Dim douOutput As Double
  3.  
  4.         douOutput = strForumla
Jun 12 '14 #2

Post your reply

Sign in to post your reply or Sign up for a free account.