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

Home » Public Forums » archive » Format Code Question
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: Format code question [message #61396 is a reply to message #35691] Wed, 16 July 2008 05:30 Go to previous messageGo to previous message
Bruce Bowler is currently offline  Bruce Bowler
Messages: 128
Registered: September 1998
Senior Member
On Wed, 16 Jul 2008 05:09:00 -0700, lbnc wrote:

> Hi there,
>
> to me, the format code '(I03,",",I03,",",I03)' is the same as
> '(I03,2(",",I03))'. Not, it seems, to IDL:
>
> aa = indgen(2, 3)
> str_aa = string(aa, format='(I03,",",I03,",",I03)') print, str_aa
> str_aa = string(aa, format='(I03,2(",",I03))') print, str_aa
> end
>
> gives here on my machine
>
> 000,001,002 003,004,005
> 000,001,002 ,003,004 ,005,
>
> Anybody knows why? Bug or feature?
>
> Cheers
> Lasse Clausen

"feature" IDL uses the FORTRAN idiom for format statements which says
essential that if there is a "repeat count group" that's as far back as we
go when we need to re-use elements in the format statement. It's sort of
documented in the help files.

Bruce
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Format code question
Next Topic: Reset fonts / Problem with colorbuttonbitmap.pro from D. Fanning

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

Current Time: Sun Oct 12 13:30:21 PDT 2025

Total time taken to generate the page: 0.40047 seconds