Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Idl-pvware > Re: System Vari...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 3 Topic 5709 of 5741
Post > Topic >>

Re: System Variable question

by pgrigis@[EMAIL PROTECTED] May 5, 2008 at 11:24 AM

You can use the exists keyword of "defsysv".

Ciao,
Paolo

ikev...@[EMAIL PROTECTED]
 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




 3 Posts in Topic:
System Variable question
ikevi10@[EMAIL PROTECTED]  2008-05-05 11:08:40 
Re: System Variable question
pgrigis@[EMAIL PROTECTED]  2008-05-05 11:24:59 
Re: System Variable question
ikevi10@[EMAIL PROTECTED]  2008-05-05 11:34:41 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat May 17 7:11:18 CDT 2008.