Post Reply 
[SOLVED] LNAME - exctracting variables from stringed expression?
01-16-2017, 12:23 PM
Post: #3
RE: LNAME - exctracting variables from stringed expression?
You can also do:
Code:
LNAME(EXPR("'"+L1(1)+"'"))

In your case, with L1(1):="(C-A)", it will return {C,A}

If you have to use it several times it may be interesting to create a small function such as:
Code:
EXPORT STR2EXPR(str)
BEGIN
RETURN EXPR("'"+str+"'");
END;

and just do: LNAME(STR2EXPR(L1(1)))
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: LNAME - exctracting variables from stringed expression? - Didier Lachieze - 01-16-2017 12:23 PM



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