Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Small macro - char problem


From   Fred Wolfe <[email protected]>
To   [email protected]
Subject   st: Small macro - char problem
Date   Sat, 06 Jul 2002 06:04:07 -0500

Dear Statalisters,

I have a small macro - char problem.

I define the following:

char totinco[outname] "Total Income (\$US)"
local outname: char totinco[outname]

Now I display the char and macro.
. char l totinco[outname]
totincom[outname]: Total Income ($US)

. di "`outname'"
Total Income ()

Notice the $US is omitted in the macro but not the char. I have tried various ways to get it to display, but without success. Any suggestion?

Thanks,

Fred Wolfe



---------------------------------------------------------------------------- ------------------------
Fred Wolfe Tel (316) 263-2125
National Data Bank for Rheumatic Diseases Fax (316) 263-0761
Wichita, Kansas [email protected]
---------------------------------------------------------------------------- -------------------------
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/




© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index