Post Reply 
string() function reverse
10-01-2017, 12:46 PM
Post: #1
string() function reverse
Hello,
let's say I perform a STRING command to an objet (like a list, a matrix... for example).
how can I transform it to its original form ?

in other word, what is the reverse function of STRING ?

Thank you.

primer
Find all posts by this user
Quote this message in a reply
10-01-2017, 01:39 PM (This post was last modified: 10-01-2017 01:40 PM by DrD.)
Post: #2
RE: string() function reverse
Do you mean a string relationship like quote() is to eval()? (A specific example would be helpful).
Find all posts by this user
Quote this message in a reply
10-01-2017, 01:43 PM
Post: #3
RE: string() function reverse
EXPR: Parses a string into a number or expression and returns the result evaluated.

For ex:
Code:
L1:={2,4,6,8,10}
STRING(L1)           -> "{2,4,6,8,10}"
EXPR("{2,4,6,8,10}") -> {2,4,6,8,10}
Find all posts by this user
Quote this message in a reply
10-01-2017, 01:54 PM
Post: #4
RE: string() function reverse
(10-01-2017 01:43 PM)Didier Lachieze Wrote:  EXPR: Parses a string into a number or expression and returns the result evaluated.

For ex:
Code:
L1:={2,4,6,8,10}
STRING(L1)           -> "{2,4,6,8,10}"
EXPR("{2,4,6,8,10}") -> {2,4,6,8,10}

Yes, thank you Dider, that's exactly that.

BTW, I found that Connectivity Kit can not save/export user variables,
if you want to export your variable, you have to use built in ones (L0 to L9 for lists)
or use Notes trick, see below :
for example : Notes("myList_saved"):=STRING(mylist); -- Notes can be exported to windows with CK...
and then EXPR is needed to recover mylist:=EXPR(Notes("mylist_saved"));

primer
Find all posts by this user
Quote this message in a reply
Post Reply 




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