General information
Category:
Coding, syntax & commands
You need to try to USE it exclusively, then test for an error condition.
Something like this. This code assumes that you don't have the file open
already on your workstation.
lcWasOnErr = ON("ERROR")
llOpenByAnother = .F.
ON ERROR llOpenByAnother = .T.
USE thefile.dbf EXCLUSIVE
IF llOpenByAnother = .T.
*--File was open by someone else.
ELSE
*--File is available for exclusive use.
ENDIF
USE IN thefile
ON ERROR &lcWasOnErr.
HTH
-Matt
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only