<>
See - help macrolists-
*******
local alpha 1 2 3 4 5
di "`alpha'"
local not 1
local alpha: list alpha- not
di "`alpha'"
*******
HTH
Martin
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of raoul reulen
Sent: Montag, 1. Februar 2010 00:07
To: [email protected]
Subject: st: change local macro
Hello all
Suppose I define the content of a local macro named "alpha" as :
.local alpha 1 2 3 4 5
Can I adjust the content of the local macro without having to redefine
the local macro?
Can I remove, for example, the first number such that the content is
now 2 3 4 5 rather than 1 2 3 4 5?
Thus, if I type:
.di "`alpha'"
I (obviously) get:
1 2 3 4 5
but I want:
2 3 4 5
Obviously,
.di "`alpha'-1" or something wouldnt work....
Thanks
Raoul
*
* 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/