-discard- as I understand it includes -program drop _all-.
Thus, next time this appears to happen, contact
tech-support. Either you have found a subtle bug, or
things are not what you think they are.
On the original question, there is a confusion. If
you change an .ado file with e.g. a text editor, it
is changed, just as you wish. It is the corresponding
program stored in memory that is not automatically
changed, nor should it be unless you say so, which
is why others are quite rightly pointing to -discard-
and -program drop-.
The text editors FAQ
http://fmwww.bc.edu/repec/bocode/t/textEditors.html
explains how you can build in an automatic -discard-
to use of your favourite text editor.
Ricardo Ovaldia replied to Xavi Barber
> > I'm programing my first ADO file.
> >
> > If I change one line in my program, my ado file
> don't refresh, then I
> > shut down Stata and return to the first step.
> >
> > Do it exist a "refresh" command????
I find that sometimes -discard- does not always work,
so I like using -program drop _all- instead.
I am not sure why -discard- sometimes fails to clear
the program from memory, but -program drop _all-
always works.
*
* 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/
--------------------------------------------------------