Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: RE: problem with _request()

From   Michael Norman Mitchell <>
Subject   Re: st: RE: problem with _request()
Date   Wed, 17 Mar 2010 11:11:59 -0700

Dear Nick

That makes perfect sense. Thanks for both the answer and the underlying history. That is both helpful and informative!

Michael N. Mitchell
See the Stata tidbit of the week at...

On 2010-03-17 10.44 AM, Nick Cox wrote:
Not well explained, but it defines a global not a local: $macname not


Michael Norman Mitchell

    In a recent post, Carl had troubles using "display _request()". I
have need for this and am also having troubles with this.

    I have a simple do-file named

---- ----
display "What is your name?" _request(yourname)
display "`yourname'"
---- ----

    When I run this, I expect it to display my name back. But this is
what I get...

. do
. display "What is your name?" _request(yourname)
What is your name?. Michael
. display "`yourname'"

end of do-file

    Am I using this incorrectly? Can anyone else confirm this as a

*   For searches and help try:
*   For searches and help try:

© Copyright 1996–2016 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index