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

Home » Public Forums » archive » Re: Hey! You can execute multi-line statements from the IDL command prompt!
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
Re: Hey! You can execute multi-line statements from the IDL command prompt! [message #65678] Tue, 17 March 2009 05:38
natha is currently offline  natha
Messages: 482
Registered: October 2007
Senior Member
Or like this. (& $)

FOR i=0, 5 DO BEGIN & $
FOR j=0, 2 DO BEGIN & $
PRINT, i & $
PRINT, j & $
ENDFOR & $
ENDFOR
Re: Hey! You can execute multi-line statements from the IDL command prompt! [message #65689 is a reply to message #65678] Mon, 16 March 2009 16:30 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Ed Hyer writes:

> Like this:
>
> IDL> .run
> - for i=0,2 do begin
> - print, i, "things."
> - endfor
> - end
> % Compiled module: $MAIN$.
> 0things.
> 1things.
> 2things.

Oh, please, let's not put newbies in that old testament
editor or we'll never be able to get any work done. ;-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: weird behaviour of ishft
Next Topic: Re: Landsat Image weirdness - IDL off topic

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

Current Time: Wed Oct 08 17:39:35 PDT 2025

Total time taken to generate the page: 0.00612 seconds