>I have an application in an multi-user environment.
>Every time I try to use the tables exclusively to reindex the files I get an error . I guess some user still have tables open at their workstation.
>What functions should I use to find out if the table is being used so I can skip it ( since I need exclusive use ) and go on with the next table in my database?.
>
>
>Thanks,
>Sergio
Yuo can trap ON ERROR:
lErrorflag=.f.
ON ERROR lErrorflag=.t.
USE table1 EXCLUSIVE
ON ERROR
IF lErrorflag=.t.
...
Edward Pikman
Independent Consultant