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 #3499 is a reply to message #3435] Thu, 26 January 1995 09:47 Go to previous messageGo to previous message
ps is currently offline  ps
Messages: 14
Registered: September 1994
Junior Member
Mike Schienle (rep2857@sbsun0010.sbrc.hac.com) wrote:
: IDL> print, var
: % PRINT: Variable is undefined: VAR.
: % Execution halted at $MAIN$ (PRINT).
: IDL> print, size(var)
: 0 0 1

: The first parameter will be a zero if var is undefined.

!!NO

that's wrong:
IDL> i=1
IDL> print,size(i)
0 2 1
IDL>

The *second* parameter has to be zero (exactly s(s(0)+1, which defines
the type of the variable)

Peter

------------------ Peter 'PIT' Suetterlin -----------------
| Kiepenheuer Institut | Sternfreunde Breisgau e.V |
| fuer Sonnenphysik | |
| 0761/3198-210 | 0761/71571 |
-<ps@kis.uni-freiburg.de>-<suettpet@sun1.ruf.uni-freiburg.de>--
[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: Wed Oct 08 19:32:17 PDT 2025

Total time taken to generate the page: 0.04948 seconds