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

RE: st: forvalues problem - oops


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   RE: st: forvalues problem - oops
Date   Thu, 1 Aug 2002 12:59:05 +0100

Fred Wolfe
> 
> 
> Oops the invalid syntax is point to the wrong line
> 
> forvalues k = 1 / `catvar`j'_totline' {
> * forvalues k = 1 / $catvar`j'_totline { <-- invalid syntax 
> error here
> 
> This is correct:
> 
> forvalues k = 1 / `catvar`j'_totline' { <-- invalid syntax 
> error here
> * forvalues k = 1 / $catvar`j'_totline {
> 

This email, and that just before it, passed 
my reply to Fred's earlier email somewhere mid-Atlantic. 

But I think the analysis remains the same. 

Given a left quote ` Stata is going to hold its breath until 
it sees a matching right quote ', so long as the length 
of the local macro name is legal. There is no exact equivalent 
for $ insofar it needs no closing symbol, merely something implying
that the end of the name is reached. 

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