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

RE: st: Re: -levels- question


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   RE: st: Re: -levels- question
Date   Thu, 18 Sep 2003 19:02:04 +0100

Danielle H. Ferry

> Thank you, Nick & Roger! I can see that Nick's & Roger's answers are
> essentially the same. One more (macro) question: Why isn't
> it necessary in
> Roger's solution to put a space between _fvalcur_ and
> _:label (mpg)_ ?

... because Stata's parser is splitting the command line
into tokens. It is crawling along character
by character:

1. following its own rules on legal names, the
colon cannot be part of the macro name;

2. so the "r" of "fvalcur" must be
the last character of that name
and the ":" must be something else;

and

3. a colon is legal at that point.

Nick
[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