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

Home » Public Forums » archive » endless loops suck
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: endless loops suck [message #33886 is a reply to message #33853] Tue, 04 February 2003 17:21 Go to previous messageGo to previous message
Thomas Gutzler is currently offline  Thomas Gutzler
Messages: 44
Registered: November 2002
Member
Timm Weitkamp wrote:
> Today at 09:57 +0800, Thomas Gutzler wrote:
>
>> How is this possible ?
>>
>> FOR i=0,4 DO PRINT, i, ' ', /NONEWLINE
>> ^^^^^^^^^^ this may be a problem
>> Result:
>> 0 1 2 3 4
>
>
> Use a format string (see also "Format codes" in the online help), like
> this:
>
> FOR i=0,4 DO PRINT, i, FORMAT='($,I1," ")'
> PRINT

doh!
I tried FOR i=0,4 DO PRINT, i, FORMAT='(5(I1," "))'

close :)

thx all for enlightenin me with all this inspiring stuff :)

Tom
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: OPENW and environment variables in IDL 5.5
Next Topic: Re: Test if variable is a string

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

Current Time: Wed Oct 08 19:36:41 PDT 2025

Total time taken to generate the page: 0.00404 seconds