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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

string formula to integer 1

Status
Not open for further replies.

schothorst

Programmer
Aug 26, 2008
30
NL
Hello
Hopefully someone can help me

Is it possible to convert a formula as a string to an integer.

For example

ls_formula = "(1000-800)/20"
as a result i want li_result=10

But the formula will change evrytime when I run a new querie so the next time it could be something like
ls_formula="(((800/20)*10)+80)"

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top