[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: string to array conversion
Karsten Schmidt (email@example.com) writes:
> Hi Alex, thanks for your answer,
> I want to change the stringlength or produce new strings (delete and add
> some words), example:
> A STRING =
> that's allright,
> but if I write:
> word=string('long strings are my problem')
> 162 27
> help,togehter ==> TOGETHER STRING = Array
> What's happen and how can I stop it ?
If you want to string words together, you should
use the + sign:
IDL> word1 = 'Hello '
IDL> word2 = 'Karsten'
IDL> word3 = ': How are you?"
IDL> sentence = word1 + word2 + word3
IDL> Print, sentence
Hello Karsten: How are you?
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: firstname.lastname@example.org
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155