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

Home » Public Forums » archive » 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 #27053 is a reply to message #26966] Fri, 05 October 2001 09:25 Go to previous messageGo to previous message
george.mccabe is currently offline  george.mccabe
Messages: 10
Registered: October 2001
Junior Member
fordavid, arg, keyw=keyval
print, keyword_set(keyval)
end

IDL> fordavid, 0, keyw=-1
1

(not the result i want)

thanks for the replies,
george


David Fanning <david@dfanning.com> wrote in message news:<MPG.16250eae5225cd7e9896eb@news.frii.com>...
> George McCabe (george.mccabe@gsfc.nasa.gov) writes:
>
>> ;+
>> ; PURPOSE:
>> ; "On or Off", turn any variable into a strict logical type
>> ; with only two values 0 or 1
>> ;
>
> Impressive code, George. But couldn't this be
> more simply done with this:
>
> on_off = Keyword_Set(variable)
>
> Cheers,
>
> David
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: IDL LINUX support question
Next Topic: interpol

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

Current Time: Sat Oct 11 08:42:19 PDT 2025

Total time taken to generate the page: 0.64074 seconds