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

Home » Public Forums » archive » simple FORMAT question for the experts
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: simple FORMAT question for the experts [message #61284 is a reply to message #61230] Sat, 12 July 2008 12:45 Go to previous messageGo to previous message
Sven Geier is currently offline  Sven Geier
Messages: 17
Registered: July 2002
Junior Member
Ryan. wrote:

> Here is a sample:
> array = ['a','b','c','d','e']
> print, 1S, 'Text', array, FORMAT='(I02, " ", A0, " :", A0, :, ",")'
>
> I want this as a result:
> 01 Text :a,b,c,d,e
>
> But I get this:
> 03 Text :a,
> 00 b :c,
> 00 d :e

I may be misunderstanding what you're trying to do, but when I type this:

array = ['a','b','c','d','e']
print, 1S, 'Text', array, FORMAT='(I02, " ", A0, " :", 99(A0, :, ","))'

I get this:

01 Text :a,b,c,d,e




-- S

--
http://www.sgeier.net
My real email address does not contain any "Z"s.
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: EARN MONEY $2500-10000 PER WEEK
Next Topic: Re: In need of array help!

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

Current Time: Fri Oct 10 22:56:23 PDT 2025

Total time taken to generate the page: 0.16235 seconds