How to change string to expression? - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html) +--- Forum: HP Prime (/forum-5.html) +--- Thread: How to change string to expression? (/thread-202.html) |
How to change string to expression? - John P - 12-22-2013 10:18 AM How do I change string for ex. "x+2" to expression 'x+2' inside a program and again expression back to string. Thanks. RE: How to change string to expression? - Snorre - 12-22-2013 11:44 AM Maybe EXPR(myStr) or CAS(myStr) or CAS("'"+myStr+"'") [depends on if and where you want it evaluated]. And back via STRING(...). RE: How to change string to expression? - John P - 12-22-2013 09:44 PM Thanks, CAS(myStr) works. |