local llOpenError, lcOldError llOpenError = .f. if !used('sometable') lcOldError = on("error") on error llOpenError = .t. use sometable in 0 exclusive if llOpenError * unable to open table exclusively else * table opened exclusively endif on error lcOldError endif>I tried the FOPEN() & FCLOSE() functions and go random results. Then I found a statement in the hackers guide to VFP that said the FOPEN() command is less then 100 % predictable when running on win 98 or NT, they recommended using api calls instead of FOPEN().