<>
You may want to see Nick`s tips here
http://www.stata.com/statalist/archive/2008-06/msg01028.html before
continuing...
HTH
Martin
-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von Alex Gamma
Gesendet: Dienstag, 26. Januar 2010 15:01
An: statalist
Betreff: st: How to get a macro with content `something'
Dear Statasticians,
although I feel I must be overlooking something big,
despite checking [P] and [U] and the Statalist archives,
I wasn't able to figure out how I can simply get a local
macro A with content `something', but without expanding
`something' (something is a macro, too, that contains,
let's say, foo1 [. loc something foo1]).
I couldn't get it to work using "\".
If I code
. loc A \`something'
I will get, as desired,
. mac list _A
_A: `something'
But if I use A in code, e.g.
. loc s "`A'" + "foo2"
I get
.mac list _s
_s: "foo1" + "foo2"
instead of
_s: `something' + "foo2"
Likewise
. di "`A'"
returns
foo1
instead of
`something'
Is what I want impossible or even unnecessary?
Alex
*
* 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/
*
* 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/