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

Home » Public Forums » archive » Re: CASE statement
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: CASE statement [message #26595 is a reply to message #26550] Wed, 12 September 2001 23:01 Go to previous messageGo to previous message
marc schellens[1] is currently offline  marc schellens[1]
Messages: 183
Registered: January 2000
Senior Member
Stein Vidar Hagfors Haugan wrote:
>
> "The proper form" ?
>
> Well, not that I've ever used it myself, but I have seen another nifty form,
> something like this:
>
> case 1 of
> (tag eq 'TIFF') or $
> (tag eq 'TAFF') or $
> (tag eq 'FIFF') : begin & print,"Tag is TIFF (or a typo thereof)" & end
>
> (tag eq 'GIF') or $
> (tag eq 'GUF') : begin & print,"Tag is GIF (or a typo thereof)" & end
>
> :
>
> ELSE: print, "Tag is unknown"
> end
>
> The "ELSE" part can of course be written like this (saves 3 keystrokes :-)
>
> 1: print,"Tag is unknown"
>
> Whether this is a "proper form", I'll leave up to David :-)
>

I think thats why for most people the term IDL-users is more
appropriate than IDL-programmers...

:-) marc
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Drawing 2 or 3 contours on a same image
Next Topic: Using IDL with Java

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

Current Time: Wed Oct 08 19:22:04 PDT 2025

Total time taken to generate the page: 0.00381 seconds