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 #52108 is a reply to message #28459] Mon, 08 January 2007 20:26 Go to previous messageGo to previous message
tony.ohagan is currently offline  tony.ohagan
Messages: 3
Registered: January 2007
Junior Member
> If this already in a program, you don't need the & and $. If this is
> at the command line, I must ask, why are you using a case block at the
> command line? Seems, well, strange, but that's just me.

No I'm not using it from the command line.
I've already got it inside a .pro file.
I'm running it via NASA's SeaDAS library - perhaps this is the culprit?

$ seadas myprog.pro

I agree that it's very strange and contrary to all examples in the IDL
manuals.
Unfortunately if I don't use "& $" suffixes I get syntax errors.

> If you're using if, else, for, or while, and sometimes case and switch,
> then you should be using begin and end[if|else|for|while]. Here's a
> short example for each:

In fact I'm already using begin/ends in my case statements.
I've read the IDL manuals on case statements.
This example was from the manual.
[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 15:36:40 PDT 2025

Total time taken to generate the page: 0.63944 seconds