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

Home » Public Forums » archive » Re: Passing zero as a Parameter/ NOT KEYWORD_SET
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: Passing zero as a Parameter/ NOT KEYWORD_SET [message #16087 is a reply to message #16085] Tue, 29 June 1999 00:00 Go to previous messageGo to previous message
Andy Sowter is currently offline  Andy Sowter
Messages: 4
Registered: February 1999
Junior Member
Hmmm! These solutions are all very elegant, aren't they? Gives me a
headache, though! There's something in my IDL manual about avoiding IF
statements.......

For the less accomplished among us, and I'm included, if the parameter
you're trying to pass is an unsigned integer, add 1 to it before you pass it
to the subroutine and then subtract 1 when you get in. Easy. And you
didn't have to spend ages with the manual either (actually, there's 8
manuals with my IDL and it's a nightmare to find things - it was better when
there were only 2!) :)

Andy
Brute Force School of Programming


Grady Daub wrote in message <37777E20.353D94CA@garnet.acns.fsuMMER.edu>...
>
> Ah, I remember doing that. I think I took it out while looking for another
> bug, thinking that it didn't work. :-(
>
> Thanks.
>
>> However the best way is just to do this:
>>
>> IF KEYWORD_SET(keyword) EQ 0 THEN BEGIN
>>
>
>
[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
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Zero vector detection in IDL
Next Topic: Re: Extra space around widget windows....

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

Current Time: Thu Oct 09 12:43:27 PDT 2025

Total time taken to generate the page: 0.24102 seconds