RE: ToString on object
- To: mathgroup at smc.vnet.net
- Subject: [mg28613] RE: [mg28565] ToString on object
- From: "tgarza01 at prodigy.net.mx" <tgarza01 at prodigy.net.mx>
- Date: Wed, 2 May 2001 03:37:05 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
The problem stems from the fact that your input is taken as symbols, as there is nothing to indicate that it is meant to be a string. Then, a blank space is interpreted as multiplication, and the "factors" are then ordered alphabetically (as you can see by looking at FullForm). What you have to do is manually wrap the input in quotation marks before applying ToString: "bb aa, rr cc". You will then get the desired result. Tomas Garza Mexico City Original Message: ----------------- From: merkat cabanc at gigadata.com To: mathgroup at smc.vnet.net Subject: [mg28613] [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/ .