Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
?IsTableInUse("C:\mytable.dbf")
FUNCTION IsTableInUse(tcTableName)
SET ASSERTS ON
ASSERT PCOUNT() > 0 MESSAGE "Developer Error: Table name parameter is required!"
ASSERT TYPE("tcTableName") = "C" MESSAGE "Developer Error: Table name parameter must be a character!"
ASSERT !EMPTY(tcTableName) MESSAGE "Developer Error: Table name parameter is empty!"
ASSERT FILE(tcTableName) MESSAGE "Developer Error: Table does not exist!"
LOCAL lcErrorHandlerWas, llReturn
lcErrorHandlerWas = ON("ERROR")
ON ERROR llReturn = .T. && Could call proc that checks for ERROR() = 3 "File is in use"
USE (tcTableName) IN 0 EXCLUSIVE
USE IN SELECT(JUSTSTEM(tcTableName))
ON ERROR &lcErrorHandlerWas
RETURN llReturn
ENDFUNC
Microsoft said:An initialization procedure that opens an audit file and attempts to lock certain blocks of that file is added to the application