[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: Treat $ as text rather than indicator for global macro?
On Jun 1, 2007, at 8:52 AM, Ferry, Danielle ((Exchange)) wrote:
I'm having a little issue which I'm sure one of you wizards will
find trivial and can help me with easily, but is currently stumping
This works fine:
. di "Balance (\$Bn's)"
But this doesn't:
. local Y "Balance (\$Bn's)"
. di "`Y'"
How can I make it display correctly in the second instance?
. loc Y "Balance (\$Bn's)"
. mac li _Y
_Y: Balance ($Bn's)
which shows that the local macro Y does indeed contain "Balance
($Bn's)"; the problem is that after Y has been expanded in your
display command, the $B is then replaced by the contents of the
global macro B (which in this case is nothing). To avoid this
subsequent expansion, use
. di "`macval(Y)'"
* For searches and help try: