RE: ToString on object
- To: mathgroup at smc.vnet.net
- Subject: [mg28612] RE: [mg28565] ToString on object
- From: "tgarza01 at prodigy.net.mx" <tgarza01 at prodigy.net.mx>
- Date: Wed, 2 May 2001 03:37:04 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
The reason you get your result in alphabetical order is that Mathematica assumes that you are using symbols, since there is no way of knowing they are strings. Then a blank space means multiplication and the factors appear in alphabetical order, as you can see by looking at FullForm. It is only then that they are converted into strings. I suggest you wrap your input in quotation marks before applying ToString, i.e., "bb aa, rr cc". Then you'll obtain the desired result. Tomas Garza Mexico City Original Message: ----------------- From: merkat cabanc at gigadata.com To: mathgroup at smc.vnet.net Subject: [mg28612] [mg28565] ToString on object Hi I want a list of strings from a copied in line. So I copied to my notebook from the clipboard the sequence: bb aa, rr cc What I get with ToString is the ordered sequence: "aa bb" , "cc rr" what I want go get is {"bb aa","rr cc"} I guess that some use of Hold should help. Can anybody help? Merkat -------------------------------------------------------------------- Mail2Web - Check your email from the web at http://www.mail2web.com/ .