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 #16093 is a reply to message #16087] Tue, 29 June 1999 00:00 Go to previous messageGo to previous message
philaldis is currently offline  philaldis
Messages: 32
Registered: March 1999
Member
On Mon, 28 Jun 1999 10:02:49 -0400, Grady Daub
<gadZOOKS8371@garnet.acns.fsuMMER.edu> wrote:

> Will n_elements give a number <= zero if the keyword is called like
> "/keyword"
>

No.

N_Elements() returns the number of elements in a variable. If that
variable was a (10,10) array then N_Elements would return 100. If
however the variable is undefined (which of course is its own special
variable type in IDL), then N_Elements returns 0.

If the keyword is set, but set to a negatove number then N_Elements
will return will return a poitive number of elements still. If the
parameter is simply a flag then you're much better off with the
Keywrod_Set() EQ 0 idea.

Cheers,
Phil
[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 14:43:55 PDT 2025

Total time taken to generate the page: 0.55839 seconds