Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: Using _request() when copy pasting from external editor
From
"Narahari H.S." <[email protected]>
To
statalist <[email protected]>
Subject
st: Using _request() when copy pasting from external editor
Date
Thu, 3 Oct 2013 21:43:32 +0800 (SGT)
Hello everyone,
A simplified version of my code is below (I use Stata 10.1)
*********************************************************
sysuse auto
di "Enter value (0/1): " _request(a)
sum if foreign==$a
*********************************************************
The above works when I "Do" the file from the Stata Do-file editor but if I copy paste the lines from an external editor, Stata does not wait for the user input. Is there a way to make this work when I copy paste?
Thank you
Hari
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/