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

RE: RE: st: syntax; option real & varname


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <n.j.cox@durham.ac.uk>, <statalist@hsphsun2.harvard.edu>
Subject   RE: RE: st: syntax; option real & varname
Date   Thu, 15 Aug 2002 19:18:23 +0100

I just wrote 

> >>> True. In that case, 
> 
> capture syntax ... , x1(real) ... 
> if _rc {
> 	capture syntax ... , x1(varname numeric) ... 
> }
> 
> where the ... represents other stuff. 
> 
> If the problem is with what was in x1() then 
> the user will get that message; if with 
> other stuff, then there will be a message
> to that effect. 
> 
> The only loss is a little informativeness. 
> Either way, the user might read the help 
> again. 
> 
> Principle: 
> The more general code is often both shorter and more robust.

Should strike the second "capture". 
 
Nick 
n.j.cox@durham.ac.uk 
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index