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

Home » Public Forums » archive » Removing the blanks between elements in a string array
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Removing the blanks between elements in a string array [message #69713] Fri, 29 January 2010 20:31
sulli.jj is currently offline  sulli.jj
Messages: 3
Registered: July 2009
Junior Member
Does anyone know a easy to way to print out an array with no blanks at
all?

I have an array of strings like
a = [[' cat,','d o g,','bi rd ' ],[' 1.23, ',' 4. 56,','
7.89 ']]

print, a
cat, d o g, bi rd
1.23, 4. 56, 7.89

I can remove most of the spaces with,

print, STRCOMPRESS(a, /REMOVE_ALL)
cat, dog, bird
1.23, 4.56, 7.89

But what I need to output is,

cat,dog,bird
1.23,4.56,7.89

No blanks at all. Any ideas?

Thanks,
John
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: read an mp3?
Next Topic: Re: Removing the blanks between elements in a string array

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

Current Time: Wed Oct 08 11:40:16 PDT 2025

Total time taken to generate the page: 0.00656 seconds