Richard Williams <[email protected]> asks:
> Thanks Ken. So, to modify Nick's example, if my program is written in 8.2
> but I want to let the 9.0 users use the new level options, could I say...
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')
...
I finally got Stata 9 and can confirm that the above code works as desired
under both 8.2 and 9.0, e.g. 9.0 users could specify -level(99.9)- if they
were so inclined while 8.2 users would still be limited to using integers.