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

Home » Public Forums » archive » Re: WDEL,/ALL
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
Re: WDEL,/ALL [message #54923] Wed, 18 July 2007 10:05
Paolo Grigis is currently offline  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 Go to previous message
David Fanning is currently offline  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.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: WDEL,/ALL
Next Topic: xrange woes

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

Current Time: Wed Oct 08 17:12:24 PDT 2025

Total time taken to generate the page: 0.00440 seconds