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 #16117 is a reply to message #16093] Mon, 28 June 1999 00:00 Go to previous messageGo to previous message
Grady Daub is currently offline  Grady Daub
Messages: 22
Registered: June 1999
Junior Member
Will n_elements give a number <= zero if the keyword is called like
"/keyword"

Kinda looks like you can't have a parameter = 0 AND be able to check if
it is set or not.
None of that fancy

on_of_off=num
;where num is 1 for set and 0 for unset.
procedure_name,keyword=on_or_off

:-(




"Martin LUETHI GL A8.1 2-4092" wrote:

> You have two possibilites:
>
> o if param_present(keyword) then ; working in PV-Wave at least
> o if (n_elements(keyword) gt 0) then ; better
[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: Wed Oct 08 19:35:17 PDT 2025

Total time taken to generate the page: 0.00379 seconds