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

st: Nifty new command window behavio(u)r


From   Nick Winter <[email protected]>
To   Stata List <[email protected]>
Subject   st: Nifty new command window behavio(u)r
Date   Wed, 04 May 2005 09:10:23 -0400

Hi all,

I note that (at least in Windows) the command window now allows you to paste multiple lines of commands, all at once. That is, if you copy three lines of code from a text file (or email or whatever) and then paste them into the command window, they all appear in the window, and are executed in turn when you press Enter.

Multiple lines can also be entered in the command window, separated by Ctrl-Enter, and only executed when Enter is pressed.

This is very handy when executing a small bit of a .do file that is being edited in something other than the DoEditor, because several lines can be Copied and Pasted all at once.

But, I note, the command window processor does not seem to allow the end-of-line characters to be commented out, which seems to me to limit the usefulness of this feature.

Tha is, I can cut and paste the following from this email (Try it!):

forval i=1/3 {
di `i'
}

But not this:

sysuse auto, clear
graph twoway scatter mpg price //
title("My Title")

I wonder if StataCorp could change this, and if others would find that useful?

--NIck


--------------------------------------------------------
Nicholas Winter 607.255.8819 t
Assistant Professor 607.255.4530 f
Department of Government [email protected] e
308 White Hall falcon.arts.cornell.edu/nw53 w
Cornell University
Ithaca, NY 14853-4601

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