HP Forums

Full Version: How to change string to expression?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How do I change string for ex. "x+2" to expression 'x+2' inside a program and again expression back to string.
Thanks.
Maybe EXPR(myStr) or CAS(myStr) or CAS("'"+myStr+"'") [depends on if and where you want it evaluated]. And back via STRING(...).
Thanks, CAS(myStr) works.
Reference URL's