Re: WDEL,/ALL [message #54923] |
Wed, 18 July 2007 10:05 |
Paolo Grigis
Messages: 171 Registered: December 2003
|
Senior Member |
|
|
kuyper wrote:
> I'm looking at an old IDL program written by someone else, which
> contains a line which says:
>
> WDEL,/ALL
>
> IDL complains about this line, saying that WDEL is undefined. I can
> find no "WDEL" defined anywhere in the body of IDL code associated
> with the program which fails. I would suspect that WDEL was meant to
> be a unique abbreviation for WDELETE, except that WDELETE doesn't
> support an /ALL option. I can't find any evidence in the list of
> obsolete IDL features that there ever was a routine named WDEL, nor
> that WDELETE has ever accepted a /ALL option.
>
> Any ideas?
>
Probably it is this routine:
http://sohowww.nascom.nasa.gov/solarsoft/gen/idl/display/wde l.pro
Ciao,
Paolo
|
|
|
Re: WDEL,/ALL [message #54924 is a reply to message #54923] |
Wed, 18 July 2007 09:32  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
kuyper writes:
> I'm looking at an old IDL program written by someone else, which
> contains a line which says:
>
> WDEL,/ALL
>
> IDL complains about this line, saying that WDEL is undefined. I can
> find no "WDEL" defined anywhere in the body of IDL code associated
> with the program which fails. I would suspect that WDEL was meant to
> be a unique abbreviation for WDELETE, except that WDELETE doesn't
> support an /ALL option. I can't find any evidence in the list of
> obsolete IDL features that there ever was a routine named WDEL, nor
> that WDELETE has ever accepted a /ALL option.
>
> Any ideas?
Probably something like this:
PRO WDEL, ALL=all
IF Keyword_Set(all) THEN BEGIN
WHILE !D.Window GE 0 DO WDelete, !D.Window
ENDIF ELSE WDelete
END
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|