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" <[email protected]>
To   <[email protected]>
Subject   RE: Re: st: RE: Version control questions
Date   Sat, 30 Apr 2005 11:50:56 +0100

Oops. My mistake. 

Nick 
[email protected] 

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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index