Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: re: Locals with two word phrases and graph titles


From   Sergiy Radyakin <[email protected]>
To   "[email protected]" <[email protected]>
Subject   Re: st: re: Locals with two word phrases and graph titles
Date   Tue, 13 Aug 2013 18:52:03 -0400

That is a working solution. However what happens is that the makename
macro would be defined incorrectly,

. local makename "AMC Concord" "AMC Pacer" "Buick LeSabre" "Cad. Deville"

. di `"`makename'"'
AMC Concord" "AMC Pacer" "Buick LeSabre" "Cad. Deville

and you are fixing it at the point-of-use. This means that if the
macro is used at several points, you will need to be careful at each
of them. Fixing at at point-of-declare involves same amount of effort,
but then allows working carelessly later on.

Best, Sergiy


On Tue, Aug 13, 2013 at 6:43 PM, Red Owl <[email protected]> wrote:
> Just change the local cname code line to:
>
> local cname: word `m' of "`makename'"
>
> Red Owl
> [email protected]
>
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/faqs/resources/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/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index