LOCK()

From Lianjapedia
Revision as of 07:48, 4 February 2013 by Yvonne.milne (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Purpose

Function to lock record

Syntax

LOCK([<workarea | alias>])

See Also

FLOCK(), RLOCK(), UNLOCK

Description

The LOCK() function attempts to lock the current record. If successful, it returns .T. and the record is locked. If the record is already locked by another user then it returns .F..

Example

do while not lock()
    sleep 2
enddo