comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: How to convert (concatenate) a string array to a string scalar?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: How to convert (concatenate) a string array to a string scalar? [message #19281 is a reply to message #19276] Mon, 13 March 2000 00:00 Go to previous messageGo to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Kristian Kjaer (kristian.kjaer@risoe.dk) writes:

> Given
> numarray=[1342,1347,1355] ;, say, I wan't
> strscalar='1342,1347,1355' ;, but
> help,string(numarray)
> gives: STRING = Array[3]
> and
> help,total(string(numarray))
> gives an error.
>
> How to convert (concatenate) a string array to a string scalar?

Now here (I feel pretty darn confident) is the perfect
opportunity to use a loop in IDL. :-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: need help MS powersation fortran external
Next Topic: Re: matching lists

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 18:09:38 PDT 2025

Total time taken to generate the page: 0.00542 seconds