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

RE: Re: st: RE: Version control questions


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   RE: Re: st: RE: Version control questions
Date   Sat, 30 Apr 2005 11:50:56 +0100

Oops. My mistake. 

Nick 
n.j.cox@durham.ac.uk 

Ken Higbee replied to Richard Williams 

> Almost.  There is one error in the original suggestion (I did not
> see it previously).  Instead of checking against `c(version)'
> check against `c(stata_version)'.
> 
> So it should look something like
> 
>     program myprog
>             version 8.2
>             local oktype = cond(`c(stata_version)' < 9, ///
>                                 "integer `c(level)'", "cilevel")
> 
>             syntax ... , ... Level(`oktype')
> 
>             ...

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