Statalist


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

Re: st: Re: How to Erase Program


From   Sergiy Radyakin <serjradyakin@gmail.com>
To   statalist@hsphsun2.harvard.edu
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 <martin.weiss1@gmx.de> 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: <jcannon@tgen.org>
> To: <statalist@hsphsun2.harvard.edu>
> 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
>> jcannon@tgen.org
>>
>> *
>> *   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index