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

Re: st: Re: how to save ado files


From   "R. Allan Reese" <R.A.Reese@hull.ac.uk>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Re: how to save ado files
Date   Fri, 28 Nov 2003 16:31:04 +0000

>Olivier, I have tried that. It did not work. It still save the file as
>filename.ado.txt. I have saved it in the right place (I think)

Steichen <steichen@triad.rr.com> wrote:
>Did you change the name on the -program define- line inside the file 
>to match the filename?  That line and the filename must match.

Yet another example of Microsoft "intelligent" software being the 
opposite.  I've had similar frustrations using Wordpad, trying to save 
something.ado but having to go into Explorer to knock off the 
gratuitous .txt.  There does not seem to be a "will you bloody stop 
interfering with my filenames" toggle.  A better alternative is PFE, 
still available from web archives (search for "Programmers' File 
Editor").

While it is a convenient development environment in many ways, 
Stata+editor does require the user to remember various steps in 
sequence *every time*:
1) save "program something" in something.ado, but you don't have to 
   exit the editor, 
2) if you have called the previous version in the Stata session,
   use "discard" or it will show you the same error,
3) write code that does not change the data irreversibly.  
   "sortpreserve" is a fantastic option for programmers. 


--------------------------------------------------------------
R Allan Reese                      Email: R.A.Reese@hull.ac.uk
Graduate School
University of Hull
Tel +44 1482 466845                       Fax: +44 1482 466436

*
*   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