Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- dBsee 4.6 - The Library - <b>dffileislock()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
dfFileIsLock()
Verification of a active lock on a file
------------------------------------------------------------------------------
Syntax:

     dfFileIsLock(<cFile>) --> lIsLock

Parameters:

     <cFile>    File to verify if there is a lock.
     The single lock control if  implemented
     from the function dfFileLock. DEFAULT ALIAS()

Returns:

     <lIsLock> If .T. the file has an active LOCK

Description:

     Permits to control a given file with a active LOCK. This LOCK must be
     placed by the function dfFileLock

Example:

     LOCAL aFile:={}
     IF Cli->(dfFileIsLock() )  // Control of the Lock
        Cli->(dfFileLock(aFile) )  // Lock of the file
     ENDIF
     
     dfFileUnLock(aFile)  // UnLock of the files

See also:

     dfFileLock(), dfFileUnLock(), dfNet()

See Also: dfFileLock() dfFileUnLock() dfNet()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson