Evaluate

  • Thread starter Thread starter Michael Wong
  • Start date Start date
M

Michael Wong

Hi,

I am looking for a function that can parse and execute a mathematical
string, like the Eval() function for numeric only mathematic, such as:
3*5+4/2-12

Thanks
 
Any chance you can provide some background as to when and
where you will be using the function? Where does the
data originate and into what does it get entered? Sorry,
just not certain what you are attempting to accomplish.
 
Did you try:

dim dblResult as double

dblResult = Eval("3*5+4/2-12")

Seems to work for me.


--
Regards,

Adrian Jansen
J & K MicroSystems
Microcomputer solutions for industrial control
 
Thank you Adrian,

I feel ashamed to come here before looking at it myself: Eval()...

Thanks again.
 
Back
Top