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

Home » Public Forums » archive » Re: System Variable question
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: System Variable question [message #60189] Mon, 05 May 2008 11:34
ikevi10 is currently offline  ikevi10
Messages: 4
Registered: May 2008
Junior Member
Ah I can't believe I didn't notice exists. Thanks for the heads up.
Re: System Variable question [message #60191 is a reply to message #60189] Mon, 05 May 2008 11:24 Go to previous message
pgrigis is currently offline  pgrigis
Messages: 436
Registered: September 2007
Senior Member
You can use the exists keyword of "defsysv".

Ciao,
Paolo

ikev...@gmail.com wrote:
> One more quick question. I have my .pro setup to use a system
> variable. I am using the following call: keyword_set(!DATA_TYPE)
>
> Where of course !DATA_TYPE is defined in my idl start file.
>
> It works great, but I would like a way to be able to check that !
> DATA_TYPE is created (and if it isn't I can define it with DEFSYSV and
> set it to the default 0)
>
> I tried just using keyword_set and that doesn't work correctly. (IE
> if I remove the definition of !DATA_TYPE in my startup, when calling
> keyword_set instead of returning 0 it gives me: Not a legal system
> variable: !DATA_TYPE.)
>
> Thanks for any help
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: iTools colorbar
Next Topic: Re: memory allocation on Macs

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

Current Time: Wed Oct 08 19:52:01 PDT 2025

Total time taken to generate the page: 0.00609 seconds