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

Home » Public Forums » archive » Detecting whether a user-defined System Variable is in use
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
Detecting whether a user-defined System Variable is in use [message #70265] Tue, 23 March 2010 21:09
M. Katz is currently offline  M. Katz
Messages: 69
Registered: May 2005
Member
Besides writing an error trap, is there a sanctioned way to tell if a
user-defined system variable has been defined?

Suppose I use DEFSYSV to create a new !myVariable.

For regular variables I can use IsDefined = (size(x, /type) NE 0).

But for System Variables, IDL crashes when it sees that !myVariable
has not yet been defined. What is the crash-free alternative?

Thanks!
M.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: adding subset image into larger one
Next Topic: Re: Detecting whether a user-defined System Variable is in use

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

Current Time: Wed Oct 08 13:56:50 PDT 2025

Total time taken to generate the page: 0.00367 seconds