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

Home » Public Forums » archive » Newbie IDl 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: Newbie IDL question [message #52111 is a reply to message #28459] Mon, 08 January 2007 15:48 Go to previous message
JD Smith is currently offline  JD Smith
Messages: 850
Registered: December 1999
Senior Member
On Mon, 08 Jan 2007 15:40:55 -0800, tony.ohagan wrote:

> I new to IDL but have lots of experience in other programming languages.
>
> It appears that all nested control statements IF/CASE/WHILE etc force me
> to
> suffix every line with & $ to avoid syntax errors. Is there any way of
> ridding myself of this pain?
>
> Example:
>
> name = 'Larry'
> CASE name OF & $
> 'Larry': PRINT, 'Stooge 1' & $
> 'Moe': PRINT, 'Stooge 2' & $
> 'Curly': PRINT, 'Stooge 3' & $
> ELSE: PRINT, 'Not a Stooge' & $
> ENDCASE

Do you mean from the command line? Put them in a file foo.pro sans & $
and:

IDL> .run foo

JD
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Newbie IDL question
Next Topic: Writing on an image

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

Current Time: Fri Oct 10 04:56:47 PDT 2025

Total time taken to generate the page: 0.71923 seconds