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

Home » Public Forums » archive » Help needed for a CASE statement, something subtle going on ...
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: Help needed for a CASE statement, something subtle going on ... [message #87776 is a reply to message #87775] Wed, 26 February 2014 14:52 Go to previous messageGo to previous message
john.hrv583 is currently offline  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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Wrapping image on polar projection
Next Topic: Re: Guide: how to call Fortran from IDL in a portable and stardard F 2003 way

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

Current Time: Wed Oct 08 15:28:42 PDT 2025

Total time taken to generate the page: 0.00482 seconds