Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Refresh an Ado file when is programing


From   [email protected] (Vince Wiggins, StataCorp)
To   [email protected]
Subject   Re: st: Refresh an Ado file when is programing
Date   Thu, 16 Dec 2004 09:45:57 -0600

In reply to a question from Jean Ries <[email protected]>, Ricardo Ovaldia
<[email protected]> writes

> I find that sometimes -discard- does not always work, so I like
> using -program drop _all- instead.

and Nick Cox <[email protected]> commented further that

> -discard- as I understand it includes -program drop _all-.

That is very close, but the distinction is a bit more subtle.  -discard- drops
all "automatically loaded programs" and that means any programs defined by any
ado-file.  It does not drop programs defined interactively or in do-files.
-program drop _all- does not distinguish and drops them all.  It would be
extremely rare, but neither will drop a program if that program is currently
running, for example if -discard- were a line in the program itself or a
subprogram called by the program.

 
-- Vince
   [email protected]

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index