Post Reply 
How to change string to expression?
12-22-2013, 10:18 AM
Post: #1
How to change string to expression?
How do I change string for ex. "x+2" to expression 'x+2' inside a program and again expression back to string.
Thanks.
Find all posts by this user
Quote this message in a reply
12-22-2013, 11:44 AM (This post was last modified: 12-22-2013 12:09 PM by Snorre.)
Post: #2
RE: How to change string to expression?
Maybe EXPR(myStr) or CAS(myStr) or CAS("'"+myStr+"'") [depends on if and where you want it evaluated]. And back via STRING(...).
Find all posts by this user
Quote this message in a reply
12-22-2013, 09:44 PM
Post: #3
RE: How to change string to expression?
Thanks, CAS(myStr) works.
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)