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

Home » Public Forums » archive » How to see if variable is defined?
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: How to see if variable is defined? [message #3497 is a reply to message #3411] Fri, 27 January 1995 06:49 Go to previous messageGo to previous message
thompson is currently offline  thompson
Messages: 584
Registered: August 1991
Senior Member
nmw@ion.le.ac.uk (Nigel Wade) writes:

> In article 95Jan20094331@venice.water.ca.gov, rfinch@water.ca.gov (Ralph Finch) writes:
>> Is there a nice way of checking if a variable is defined?
>>
>> I have a widget_control command which removes a menu, and I need to
>> see if the menu is defined before destroying it.
>> --
>> Ralph Finch 916-653-8268:voice 916-653-6077:fax
>> rfinch@dop.water.ca.gov / finger for PGP public key
>> "Nada burra la chamaca." A.G.
>> Any opinions expressed are my own; they do not represent my employer


> There are two possible ways of doing this.

> The first is to use the keyword_set function. This returns 1 if a variable
> is defined, 0 otherwise. ...

Not quite true. KEYWORD_SET returns 1 if a variable is defined AND IS NOT
ZERO!

Bill Thompson
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: autostart Wave license, Solaris 2.4
Next Topic: "True" map projections

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

Current Time: Fri Oct 10 13:26:13 PDT 2025

Total time taken to generate the page: 0.72058 seconds