From: Richard Williams <[email protected]>
Reply-To: [email protected]
To: [email protected]
Subject: RE: st: Dropping programs
Date: Sun, 27 Mar 2005 09:23:48 -0500
At 10:37 PM 3/26/2005 -0600, Jun Xu wrote:
I think you probably have to rerun the ado file or discard it first. I
think that's way how it works. Though you specified cap program drop
myprog in the ado file, without truly running the ado file, this line is
not executed by simply overwriting the old ado file. The old ado version
is still in memory. My guess is that once an ado command is executed, it's
in memory and unless you EXECUTE (do myprog.ado) the new version or tell
Stata to discard, Stata won't execute the newly updated ado. Others might
have comments.
Jun
Thanks Jun. I still wonder if I am doing something wrong or missing
something obvious, as I've seen other programs start with -capture program
drop progname-.
Anyway, I have found a solution. I've written a program whose sole
function in life is to call the program I am editing/debugging:
program define x
capture program drop myprog
myprog `0'
end
*
* 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/
_________________________________________________________________