Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Re: How to Erase Program


From   Sergiy Radyakin <[email protected]>
To   [email protected]
Subject   Re: st: Re: How to Erase Program
Date   Fri, 13 Mar 2009 16:44:48 -0400

On Fri, Mar 13, 2009 at 4:41 PM, Martin Weiss <[email protected]> wrote:
> program drop prog1
>
> HTH
> Martin


And if you are writing a do-file which defines a program put the following line:
capture program drop prog1
   before you write:
program define prog1
This will erase (drop) the program from Stata memory only if it is
currently there, otherwise nothing happens

Best regards, Sergiy


> _______________
> ----- Original Message ----- From: <[email protected]>
> To: <[email protected]>
> Sent: Friday, March 13, 2009 9:40 PM
> Subject: st: How to Erase Program
>
>
>> How do you erase a program in Stata.  I tried -erase prog1- and it did
>> not work, and I cannot seem to figure it out.  Thanks!
>>
>> Jessica Cannon
>> [email protected]
>>
>> *
>> *   For searches and help try:
>> *   http://www.stata.com/help.cgi?search
>> *   http://www.stata.com/support/statalist/faq
>> *   http://www.ats.ucla.edu/stat/stata/
>>
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
>

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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