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/