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

Re: st: Editing an ado file?


From   Ulrich Kohler <kohler@wz-berlin.de>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Editing an ado file?
Date   Fri, 4 Feb 2005 14:19:07 +0100

April Knill wrote:
> Dear Statalisters,
>
>         How does one edit an ado file?

Nice little question. Note that you will need some programing skills to do 
something usefull by editing such files. You should definitelly not edit  
Ados directely. 

I propose to proceed as  follows.

(1) 

Type 

. which <command>

to find the place were the specific ado-file for <command> is stored on your 
computer.

(2)

Copy the respective file <command.ado> to <mycommand.ado> into your personal 
ado-directory, which is most likely "c:/ado/personal"

(3)

Open "c:/ado/personal/<mycommand.ado>" with a text editor (Emacs, for example)

(4)

Change the line

program command

at the very beginning of <mycommand.ado> to 

program mycommand

(5)

Edit whatever you like. 

Hope this helps

uli


-- 
kohler@wz-berlin.de
+49 (030) 25491-361


*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index