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 #87775 is a reply to message #87773] Wed, 26 February 2014 14:47 Go to previous messageGo to previous message
Craig Markwardt is currently offline  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
[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: Sun Oct 12 08:34:53 PDT 2025

Total time taken to generate the page: 1.52465 seconds