Re: Help needed for a CASE statement, something subtle going on ... [message #87776 is a reply to message #87775] |
Wed, 26 February 2014 14:52   |
john.hrv583
Messages: 4 Registered: February 2014
|
Junior Member |
|
|
On Wednesday, February 26, 2014 5:47:24 PM UTC-5, Craig Markwardt wrote:
> 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
Hi Craig,
I did what you suggested. It worked perfectly. Thank you so much!
John
|
|
|