Also,
local alpha 1 2 3 4 5
local alpha : subinstr local alpha "1 " ""
In general, you can't change a macro without changing that macro, so
some kind of re-definition is essential. But how you do it is not
tightly prescribed.
Nick
[email protected]
Martin Weiss
See - help macrolists-
*******
local alpha 1 2 3 4 5
di "`alpha'"
local not 1
local alpha: list alpha- not
di "`alpha'"
*******
raoul reulen
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....
*
* 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/