Difference between revisions of "FLOCK()"
From Lianjapedia
Yvonne.milne (Talk | contribs) |
Yvonne.milne (Talk | contribs) |
||
Line 20: | Line 20: | ||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
− | [[Category: | + | [[Category:Cursor Functions]] |
− | + |
Latest revision as of 07:47, 4 February 2013
Contents
Purpose
Function to lock file
Syntax
FLOCK([<workarea | alias>])
See Also
ACCESS(), LOCK(), RLOCK(), SET EXCLUSIVE, USE
Description
The FLOCK() function attempts to logically lock the currently selected table. If successful, it returns .T. and the table is locked. If the table is already locked by another user, it returns .F. If the optional <workarea | alias> name is specified the function will operate in the required location. The FLOCK() function does NOT change the open status of the table to 'exclusive'.
Example
do while not flock() sleep 2 enddo