I have a dos batch file that opens dbaseiv and runs the following code
in a .prg
When the .mdx don't exist it gives me the error Production .MDX file
not found: INDUSTOL.mdx
if the .mdx already exists I get the error File already exists
either way the batch file stops running. I've tried deleting the .mdx
files but then get error 1 and also leaving them alone and getting
error 2. I've started reading about using reindex but can't make that
work either. Does anybody know what I need to do to get this
working.
Thanks,
Pete
ps. this code below works fine on XP Home edition but when I moved it
to XP Pro it doesn't work anymore.
~~~~~~~~~~~~~~~~~~~~~~
use industol.dbf
index on city+stnm+str(stnum) tag address of industol.mdx
index on str(rent,10,2) tag rent of industol.mdx
index on stnm tag street of industol.mdx
close all
use officeol.dbf
index on city+stnm+str(stnum) tag address of officeol.mdx
index on str(rent,10,2) tag rent of officeol.mdx
index on stnm tag street of officeol.mdx
close all
use webol.dbf
index on city+stnm+str(stnum) tag address of webol.mdx
index on str(rent,10,2) tag rent of webol.mdx
index on stnm tag street of webol.mdx
close all


|