Bookmark and Share

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]

Re: st: Unable to create local macro in modified ado-file (xtreg_fe.ado)


From   daniel klein <[email protected]>
To   [email protected]
Subject   Re: st: Unable to create local macro in modified ado-file (xtreg_fe.ado)
Date   Mon, 16 Jan 2012 01:31:20 +0100

Bert,

I have no idea what is going on here, but try setting the local using
the evaluator and double quotes

loc my_test_local = "Hello"

or evaluate the local, as in

n di "`macval(my_test_local)'"

Either way works for me (Stata release 12 on a Windows 7 OS).

Best
Daniel

-- 
Dear Statalist,

I am trying to make some slight modifications to xtreg_fe.ado and am
having problems creating local macros inside the ado-file.

When I try to create a local macro, it does not seem to be recognized
within the ado-file.
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index