Function to lock record
RLOCK([<workarea | alias>])
The RLOCK() 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.. Please note that Recital automatically performs file and record locking so, in most situations, this function is unnecessary. It is included for compatibility with programs written with other products. If the optional <workarea | alias> is specified, then the function will operate in the required location.
do while not rlock() set message to "Record in use." sleep 2 enddo
Recital, Recital Server