>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 <[email protected]> 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: [email protected]
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/