Talk About Network

Google


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: Why do vari...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 5586 of 6456
Post > Topic >>

Re: Why do variables become "undefined" after some error?

by David Fanning <news@[EMAIL PROTECTED] > Apr 1, 2008 at 11:45 AM

andry_william@[EMAIL PROTECTED]
 writes:

> I would like to ask hwy variables become "undefined" after an error in
> running a program/routine? (If for some reason, I read data into
> memory then run a routine which will process those data, but the
> routine has some error, THEN all my variables become "undefinend"). It
> is annoying since sometimes the data came from a call done much
> earlier in the IDL session.
> 
> How can I restore the variables to their data rather than running
> again the routine/command which read them?

Try typing "RETALL" when you crash your program. :-)

Or, put ON_ERROR,1 in your programs and you will return
to the main-level where you data is automatically. You
are in the wrong scope when you crash your program to 
see your variables.

Cheers,

David

-- 
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Se****e ma de ni thui. ("Perhaps thou speakest truth.")
 




 2 Posts in Topic:
Why do variables become "undefined" after some error?
andry_william@[EMAIL PROT  2008-04-01 10:41:33 
Re: Why do variables become "undefined" after some error?
David Fanning <news@[E  2008-04-01 11:45:38 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Wed Dec 3 20:18:32 CST 2008.