Well,
The 5.1 prob. means 5.01, but that hardly matters in this case.
AFAIK, the "compact on empty (varname)" frase is not std. Clipper syntax, which lead me to ask for the Clipper version and/or RDD involved.
So, either this is an add-on RDD that's used, but that's hardly possible with 5.01, or your code is actually FoxPro code, and won't be able to be compiled with Clipper.
If you strip off the compact... bit it should compile, and also would work on FoxPro, unless program logic is dependent on this special index technique.
Clipper 5.2e has a very complete and stable DBFCDX RDD, that does index compaction/compression by default, if indexsize is of concern, but with current HDD sizes, who cares?
HTH
TonHu
P.s. Please inform me if I'm completely off-track here... ;-)