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

Home » Public Forums » archive » Re: Begin statement
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: Begin statement [message #3263 is a reply to message #3260] Wed, 04 January 1995 23:46 Go to previous messageGo to previous message
sigut is currently offline  sigut
Messages: 12
Registered: February 1994
Junior Member
In article <3efcu3$6br@post.gsfc.nasa.gov> thompson@orpheus.nascom.nasa.gov
(William Thompson) writes:
>>
>> I think, it is only allowed to use BEGIN and END statements
>> in procedures and functions. I found nothing to this point
>> in the User's Guide...
>
> Actually, on can use BEGIN and END statements from the command line, but one
> has to fit in the entire command onto a single command line, e.g.
>
> IDL> FOR I=1,10 DO BEGIN & PRINT,I & HELP,I & ENDFOR
>
> If one can't fit the entire loop onto a single line, then one needs to write a
> procedure, either by editing a file or by using .RUN, e.g.
>
> IDL> .RUN
> - FOR I=1,10 DO BEGIN
> - PRINT, I

Actually you can write
for i=1,10 do begin & $
print, i & $ ... etc

With the &'s you make one line and with the $'s you split it when it
gets too long.

Regards, George




--
------------------------------------------------------------ ------------------
George M.Sigut ETH Informatikdienste, Beratung & Schulung, CH-8092 Zurich
Swiss Federal Inst. of Technology, Computing Services, User Support & Training
email: sigut@bs.id.ethz.ch Phone: +41 1 632 5763 Fax: +41 1 632 1225
>>>> >>>>> in case of email problems send the mail to "sigut@acm.org" <<<<<<<<<
------------------------------------------------------------ ------------------
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: 3D graphics
Next Topic: PRINT_FILE keyword in MS-WINDOWS ???

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

Current Time: Wed Oct 08 19:58:57 PDT 2025

Total time taken to generate the page: 0.00187 seconds