Re: Help needed for a CASE statement, something subtle going on ... [message #87775 is a reply to message #87773] |
Wed, 26 February 2014 14:47   |
Craig Markwardt
Messages: 1869 Registered: November 1996
|
Senior Member |
|
|
On Wednesday, February 26, 2014 5:42:50 PM UTC-5, john....@gmail.com wrote:
> Hi,
>
>
>
> I'm learning to use CASE statements in IDL, and have tried to put the following code lines
...
> That's a bit surprising, because this is one of the examples that I found on the web about the usage of CASE statements, and I just copied the example code into a text file. I checked the IDL manual, and also compared the code with codes I saw on different websites, but could not find out what's wrong with the syntax of the case statements. So I guess something subtle is going on here, and it's quite frustrating, because I tried different things, and also some different examples, but they all gave this kind of syntax errors. So there must be something that I have done totally wrong.
When you run something with "@", it's just like typing them on the command line. There are some limitations on the command line, such as multi-line complex statements are not allowed. So, sorry, CASE statements as you tried will not work.
You can use .RUN to try it out, which is just about as easy. You just need an END statement as the last line in your file.
Craig
|
|
|