Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: macval() and passing text as is


From   "Ben Jann" <[email protected]>
To   [email protected]
Subject   Re: st: macval() and passing text as is
Date   Sun, 1 Jun 2008 22:35:32 +0200

On Sun, Jun 1, 2008 at 8:58 PM, Salah Mahmud <[email protected]> wrote:
> If I understood you correctly, there is nothing that could be done
> from within an ado module to overcome the problem. So it would be up
> to the user of the ado to pass any $-containing arguments within a
> macval() call.

... or use the "\" macro exapansion escape character. Example:

 . myprog, option(blah\$blah)

would preserve the $ (provided that macval() is used throughout in -myprog-).

ben
*
*   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