How to check the variables by myself ? [message #87651] |
Thu, 20 February 2014 16:00  |
huiqiang.liu.37
Messages: 19 Registered: April 2013
|
Junior Member |
|
|
Hi, everyone,
programming with IDL , but i can not check the values of my variables defined by myself in the variables list , which always display 'undefined'. why and how?
Thanks.
Bruce Liu
|
|
|
Re: How to check the variables by myself ? [message #87655 is a reply to message #87651] |
Thu, 20 February 2014 20:13  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Huiqiang Liu writes:
> programming with IDL , but i can not check the values of my variables defined by myself in the variables list , which always display 'undefined'. why and how?
You probably defined them in some program level that is different from
the one in which you are trying to view them. Variables have "scope" and
only appear in the level (program depth) in which they are defined.
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|