Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using String to do calculations

Status
Not open for further replies.

hsviljoen

Programmer
May 26, 2004
73
ZA
Hi there,
I have formulas stored in a string var. I want to do a calculation with this var.

E.g. Value = 10/ formulaSTR

Is this possible - I tried the above but I get a "TYPE" error - due to the string.....

The string contains the following :((14*.014)/(22.73*0.1243))

Help would be much appreciated.
 
Take a look at the Eval function. This should do the trick.
 
There is a concise example in strongm's post in thread222-623714

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'If we're supposed to work in Hex, why have we only got A fingers?'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top