You are correct. Setting version to 7
or less would be the way of getting Stata
to indulge the old way of doing it.
But Kit set his program to version 8,
so he's obliged thereby to follow current syntax.
What I can't explain is why the problem has
not surfaced before.
Nick
[email protected]
Richard Williams
> At 11:50 AM 1/30/2004 +0000, Nick Cox wrote:
> >Stata is objecting to lines of the form
> >
> >if <condition> { <action> }
> >
> >as the braces are no longer allowed
> >in such single-line statements. I'll send
> >a version to Kit Baum, the author,
> >with this fixed.
>
> I thought that if you used the version command, you were
> supposed to be
> able to avoid problems like this. Are there known exceptions
> to this, or
> was this just an instance where Stata inadvertently failed to
> maintain
> backward compatibility?
*
* 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/